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

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

Issue 273193004: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. Created 6 years, 6 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
« no previous file with comments | « content/browser/web_contents/web_drag_source_mac.mm ('k') | content/plugin/webplugin_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/savable_url_schemes.h" 5 #include "content/common/savable_url_schemes.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "content/public/common/url_constants.h" 9 #include "content/public/common/url_constants.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 namespace { 13 namespace {
14 14
15 const char* const kDefaultSavableSchemes[] = { 15 const char* const kDefaultSavableSchemes[] = {
16 url::kHttpScheme, 16 url::kHttpScheme,
17 url::kHttpsScheme, 17 url::kHttpsScheme,
18 kFileScheme, 18 url::kFileScheme,
19 kFileSystemScheme, 19 url::kFileSystemScheme,
20 kFtpScheme, 20 url::kFtpScheme,
21 kChromeDevToolsScheme, 21 kChromeDevToolsScheme,
22 kChromeUIScheme, 22 kChromeUIScheme,
23 kDataScheme, 23 url::kDataScheme,
24 NULL 24 NULL
25 }; 25 };
26 26
27 const char* const* g_savable_schemes = kDefaultSavableSchemes; 27 const char* const* g_savable_schemes = kDefaultSavableSchemes;
28 28
29 } // namespace 29 } // namespace
30 30
31 const char* const* GetSavableSchemesInternal() { 31 const char* const* GetSavableSchemesInternal() {
32 return g_savable_schemes; 32 return g_savable_schemes;
33 } 33 }
34 34
35 void SetSavableSchemes(const char* const* savable_schemes) { 35 void SetSavableSchemes(const char* const* savable_schemes) {
36 g_savable_schemes = savable_schemes; 36 g_savable_schemes = savable_schemes;
37 } 37 }
38 38
39 } // namespace content 39 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_drag_source_mac.mm ('k') | content/plugin/webplugin_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698