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

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

Issue 2622693002: Cleanup of static lists of schemes & origins that are created at startup. (Closed)
Patch Set: merge Created 3 years, 11 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/public/common/content_client.cc ('k') | content/public/common/url_utils.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_UTILS_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_URL_UTILS_H_
6 #define CONTENT_PUBLIC_COMMON_URL_UTILS_H_ 6 #define CONTENT_PUBLIC_COMMON_URL_UTILS_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 9
10 class GURL; 10 class GURL;
11 11
12 namespace content { 12 namespace content {
13 13
14 // Null terminated list of schemes that are savable. This function can be
15 // invoked on any thread.
16 CONTENT_EXPORT const char* const* GetSavableSchemes();
17
18 // Returns true if the url has a scheme for WebUI. See also 14 // Returns true if the url has a scheme for WebUI. See also
19 // WebUIControllerFactory::UseWebUIForURL in the browser process. 15 // WebUIControllerFactory::UseWebUIForURL in the browser process.
20 CONTENT_EXPORT bool HasWebUIScheme(const GURL& url); 16 CONTENT_EXPORT bool HasWebUIScheme(const GURL& url);
21 17
22 // Check whether we can do the saving page operation for the specified URL. 18 // Check whether we can do the saving page operation for the specified URL.
23 CONTENT_EXPORT bool IsSavableURL(const GURL& url); 19 CONTENT_EXPORT bool IsSavableURL(const GURL& url);
24 20
25 } // namespace content 21 } // namespace content
26 22
27 #endif // CONTENT_PUBLIC_COMMON_URL_UTILS_H_ 23 #endif // CONTENT_PUBLIC_COMMON_URL_UTILS_H_
OLDNEW
« no previous file with comments | « content/public/common/content_client.cc ('k') | content/public/common/url_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698