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

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

Issue 11783038: Allow multiple WebUIControllerFactory objects to be registered. This makes is possible to implement… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: reland after bogus revert of r175971 Created 7 years, 10 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
« no previous file with comments | « content/public/common/content_client.cc ('k') | content/public/common/url_constants.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 #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.
11 11
12 class GURL;
13
12 // TODO(jam): rename this to content. 14 // TODO(jam): rename this to content.
13 namespace chrome { 15 namespace chrome {
14 16
15 // Canonical schemes you can use as input to GURL.SchemeIs(). 17 // Canonical schemes you can use as input to GURL.SchemeIs().
16 // TODO(jam): some of these don't below in the content layer, but are accessed 18 // TODO(jam): some of these don't below in the content layer, but are accessed
17 // from there. 19 // from there.
18 CONTENT_EXPORT extern const char kAboutScheme[]; 20 CONTENT_EXPORT extern const char kAboutScheme[];
19 CONTENT_EXPORT extern const char kBlobScheme[]; 21 CONTENT_EXPORT extern const char kBlobScheme[];
20 CONTENT_EXPORT extern const char kChromeDevToolsScheme[]; 22 CONTENT_EXPORT extern const char kChromeDevToolsScheme[];
21 CONTENT_EXPORT extern const char kChromeInternalScheme[]; 23 CONTENT_EXPORT extern const char kChromeInternalScheme[];
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheURL[]; 73 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheURL[];
72 CONTENT_EXPORT extern const char kChromeUIShorthangURL[]; 74 CONTENT_EXPORT extern const char kChromeUIShorthangURL[];
73 75
74 // Special URL used to swap out a view being rendered by another process. 76 // Special URL used to swap out a view being rendered by another process.
75 extern const char kSwappedOutURL[]; 77 extern const char kSwappedOutURL[];
76 78
77 // Null terminated list of schemes that are savable. This function can be 79 // Null terminated list of schemes that are savable. This function can be
78 // invoked on any thread. 80 // invoked on any thread.
79 CONTENT_EXPORT const char* const* GetSavableSchemes(); 81 CONTENT_EXPORT const char* const* GetSavableSchemes();
80 82
83 // Returns true if the url has a scheme for WebUI. See also
84 // WebUIControllerFactory::UseWebUIForURL in the browser process.
85 CONTENT_EXPORT bool HasWebUIScheme(const GURL& url);
86
81 } // namespace content 87 } // namespace content
82 88
83 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ 89 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_
OLDNEW
« no previous file with comments | « content/public/common/content_client.cc ('k') | content/public/common/url_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698