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

Side by Side Diff: content/public/common/url_constants.h

Issue 12387070: content: Move more constants from url_constants.h into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
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 #ifndef CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_
6 #define CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ 6 #define CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 9
10 // Contains constants for known URLs and portions thereof. 10 // Contains constants for known URLs and portions thereof.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 CONTENT_EXPORT extern const char kChromeUIBrowserCrashHost[]; 44 CONTENT_EXPORT extern const char kChromeUIBrowserCrashHost[];
45 CONTENT_EXPORT extern const char kChromeUIDevToolsHost[]; 45 CONTENT_EXPORT extern const char kChromeUIDevToolsHost[];
46 CONTENT_EXPORT extern const char kChromeUIHistogramHost[]; 46 CONTENT_EXPORT extern const char kChromeUIHistogramHost[];
47 CONTENT_EXPORT extern const char kChromeUIMediaInternalsHost[]; 47 CONTENT_EXPORT extern const char kChromeUIMediaInternalsHost[];
48 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheHost[]; 48 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheHost[];
49 CONTENT_EXPORT extern const char kChromeUIResourcesHost[]; 49 CONTENT_EXPORT extern const char kChromeUIResourcesHost[];
50 CONTENT_EXPORT extern const char kChromeUITcmallocHost[]; 50 CONTENT_EXPORT extern const char kChromeUITcmallocHost[];
51 CONTENT_EXPORT extern const char kChromeUITracingHost[]; 51 CONTENT_EXPORT extern const char kChromeUITracingHost[];
52 CONTENT_EXPORT extern const char kChromeUIWebRTCInternalsHost[]; 52 CONTENT_EXPORT extern const char kChromeUIWebRTCInternalsHost[];
53 53
54 } // namespace chrome
55
56 namespace content {
57
54 // Full about URLs (including schemes). 58 // Full about URLs (including schemes).
55 CONTENT_EXPORT extern const char kChromeUICrashURL[]; 59 CONTENT_EXPORT extern const char kChromeUICrashURL[];
56 CONTENT_EXPORT extern const char kChromeUIGpuCleanURL[]; 60 CONTENT_EXPORT extern const char kChromeUIGpuCleanURL[];
57 CONTENT_EXPORT extern const char kChromeUIGpuCrashURL[]; 61 CONTENT_EXPORT extern const char kChromeUIGpuCrashURL[];
58 CONTENT_EXPORT extern const char kChromeUIGpuHangURL[]; 62 CONTENT_EXPORT extern const char kChromeUIGpuHangURL[];
59 CONTENT_EXPORT extern const char kChromeUIHangURL[]; 63 CONTENT_EXPORT extern const char kChromeUIHangURL[];
60 CONTENT_EXPORT extern const char kChromeUIKillURL[]; 64 CONTENT_EXPORT extern const char kChromeUIKillURL[];
61 CONTENT_EXPORT extern const char kChromeUIPpapiFlashCrashURL[]; 65 CONTENT_EXPORT extern const char kChromeUIPpapiFlashCrashURL[];
62 CONTENT_EXPORT extern const char kChromeUIPpapiFlashHangURL[]; 66 CONTENT_EXPORT extern const char kChromeUIPpapiFlashHangURL[];
63 67
64 } // namespace chrome
65
66 namespace content {
67
68 // Used to separate a standard scheme and the hostname: "://". 68 // Used to separate a standard scheme and the hostname: "://".
69 CONTENT_EXPORT extern const char kStandardSchemeSeparator[]; 69 CONTENT_EXPORT extern const char kStandardSchemeSeparator[];
70 70
71 // Special URL used to start a navigation to an error page. 71 // Special URL used to start a navigation to an error page.
72 CONTENT_EXPORT extern const char kUnreachableWebDataURL[]; 72 CONTENT_EXPORT extern const char kUnreachableWebDataURL[];
73 73
74 // Full about URLs (including schemes). 74 // Full about URLs (including schemes).
75 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheURL[]; 75 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheURL[];
76 CONTENT_EXPORT extern const char kChromeUIShorthangURL[]; 76 CONTENT_EXPORT extern const char kChromeUIShorthangURL[];
77 77
78 // Special URL used to swap out a view being rendered by another process. 78 // Special URL used to swap out a view being rendered by another process.
79 extern const char kSwappedOutURL[]; 79 extern const char kSwappedOutURL[];
80 80
81 // Null terminated list of schemes that are savable. This function can be 81 // Null terminated list of schemes that are savable. This function can be
82 // invoked on any thread. 82 // invoked on any thread.
83 CONTENT_EXPORT const char* const* GetSavableSchemes(); 83 CONTENT_EXPORT const char* const* GetSavableSchemes();
84 84
85 // Returns true if the url has a scheme for WebUI. See also 85 // Returns true if the url has a scheme for WebUI. See also
86 // WebUIControllerFactory::UseWebUIForURL in the browser process. 86 // WebUIControllerFactory::UseWebUIForURL in the browser process.
87 CONTENT_EXPORT bool HasWebUIScheme(const GURL& url); 87 CONTENT_EXPORT bool HasWebUIScheme(const GURL& url);
88 88
89 } // namespace content 89 } // namespace content
90 90
91 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ 91 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_
OLDNEW
« no previous file with comments | « content/browser/webui/web_ui_controller_factory_registry.cc ('k') | content/public/common/url_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698