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

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

Issue 10412053: Whitelist unreachable webdata pages for content settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates 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
« no previous file with comments | « chrome/renderer/content_settings_observer.cc ('k') | no next file » | 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 #pragma once 7 #pragma once
8 8
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 CONTENT_EXPORT extern const char kChromeUIShorthangURL[]; 53 CONTENT_EXPORT extern const char kChromeUIShorthangURL[];
54 54
55 } // namespace chrome 55 } // namespace chrome
56 56
57 namespace content { 57 namespace content {
58 58
59 // Used to separate a standard scheme and the hostname: "://". 59 // Used to separate a standard scheme and the hostname: "://".
60 CONTENT_EXPORT extern const char kStandardSchemeSeparator[]; 60 CONTENT_EXPORT extern const char kStandardSchemeSeparator[];
61 61
62 // Special URL used to start a navigation to an error page. 62 // Special URL used to start a navigation to an error page.
63 extern const char kUnreachableWebDataURL[]; 63 CONTENT_EXPORT extern const char kUnreachableWebDataURL[];
64 64
65 // Special URL used to swap out a view being rendered by another process. 65 // Special URL used to swap out a view being rendered by another process.
66 extern const char kSwappedOutURL[]; 66 extern const char kSwappedOutURL[];
67 67
68 // Null terminated list of schemes that are savable. This function can be 68 // Null terminated list of schemes that are savable. This function can be
69 // invoked on any thread. 69 // invoked on any thread.
70 CONTENT_EXPORT const char** GetSavableSchemes(); 70 CONTENT_EXPORT const char** GetSavableSchemes();
71 71
72 // Note: ContentMainRunner calls this method internally as part of main 72 // Note: ContentMainRunner calls this method internally as part of main
73 // initialziation, so this function generally should not be called by 73 // initialziation, so this function generally should not be called by
74 // embedders. It's exported to facilitate test harnesses that do not 74 // embedders. It's exported to facilitate test harnesses that do not
75 // utilize ContentMainRunner and that do not wish to lock the set 75 // utilize ContentMainRunner and that do not wish to lock the set
76 // of standard schemes at init time. 76 // of standard schemes at init time.
77 // 77 //
78 // Called near the beginning of startup to register URL schemes that should 78 // Called near the beginning of startup to register URL schemes that should
79 // be parsed as "standard" with the googleurl library. Optionally, the set 79 // be parsed as "standard" with the googleurl library. Optionally, the set
80 // of standard schemes is locked down. The embedder can add additional 80 // of standard schemes is locked down. The embedder can add additional
81 // schemes by overriding the ContentClient::AddAdditionalSchemes method. 81 // schemes by overriding the ContentClient::AddAdditionalSchemes method.
82 CONTENT_EXPORT void RegisterContentSchemes(bool lock_standard_schemes); 82 CONTENT_EXPORT void RegisterContentSchemes(bool lock_standard_schemes);
83 83
84 } // namespace content 84 } // namespace content
85 85
86 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ 86 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/renderer/content_settings_observer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698