Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Side by Side Diff: content/common/savable_url_schemes.cc

Issue 10383298: Move RegisterContentSchemes from public url_constants into non-public url_schemes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pull common test initialization out into ContentTestSuiteBase Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/common/savable_url_schemes.h"
6
7 #include <stdlib.h>
8
9 #include "content/public/common/url_constants.h"
10
11 namespace {
12
13 const char* const kDefaultSavableSchemes[] = {
14 chrome::kHttpScheme,
15 chrome::kHttpsScheme,
16 chrome::kFileScheme,
17 chrome::kFileSystemScheme,
18 chrome::kFtpScheme,
19 chrome::kChromeDevToolsScheme,
20 chrome::kChromeUIScheme,
21 chrome::kDataScheme,
22 NULL
23 };
24
25 const char* const* g_savable_schemes = kDefaultSavableSchemes;
26
27 } // namespace
28
29 namespace content {
30
31 namespace internal {
32
33 const char* const* GetSavableSchemes() {
34 return g_savable_schemes;
35 }
36
37 void SetSavableSchemes(const char* const* savable_schemes) {
38 g_savable_schemes = savable_schemes;
39 }
40
41 } // namespace internal
42
43 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698