OLD | NEW |
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_CONTENT_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // Gives the embedder a chance to register its own internal NPAPI plugins. | 93 // Gives the embedder a chance to register its own internal NPAPI plugins. |
94 virtual void AddNPAPIPlugins( | 94 virtual void AddNPAPIPlugins( |
95 webkit::npapi::PluginList* plugin_list) {} | 95 webkit::npapi::PluginList* plugin_list) {} |
96 | 96 |
97 // Gives the embedder a chance to register its own standard and saveable | 97 // Gives the embedder a chance to register its own standard and saveable |
98 // url schemes early on in the startup sequence. | 98 // url schemes early on in the startup sequence. |
99 virtual void AddAdditionalSchemes( | 99 virtual void AddAdditionalSchemes( |
100 std::vector<std::string>* standard_schemes, | 100 std::vector<std::string>* standard_schemes, |
101 std::vector<std::string>* savable_schemes) {} | 101 std::vector<std::string>* savable_schemes) {} |
102 | 102 |
103 // Returns true if the url has a scheme for WebUI. See also | |
104 // WebUIControllerFactory::UseWebUIForURL in the browser process. | |
105 virtual bool HasWebUIScheme(const GURL& url) const; | |
106 | |
107 // Returns whether the given message should be processed in the browser on | 103 // Returns whether the given message should be processed in the browser on |
108 // behalf of a swapped out renderer. | 104 // behalf of a swapped out renderer. |
109 virtual bool CanHandleWhileSwappedOut(const IPC::Message& message); | 105 virtual bool CanHandleWhileSwappedOut(const IPC::Message& message); |
110 | 106 |
111 // Returns a string describing the embedder version. Used as part of the | 107 // Returns a string describing the embedder version. Used as part of the |
112 // user agent string. | 108 // user agent string. |
113 virtual std::string GetProduct() const; | 109 virtual std::string GetProduct() const; |
114 | 110 |
115 // Returns the user agent. | 111 // Returns the user agent. |
116 virtual std::string GetUserAgent() const; | 112 virtual std::string GetUserAgent() const; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 ContentPluginClient* plugin_; | 151 ContentPluginClient* plugin_; |
156 // The embedder API for participating in renderer logic. | 152 // The embedder API for participating in renderer logic. |
157 ContentRendererClient* renderer_; | 153 ContentRendererClient* renderer_; |
158 // The embedder API for participating in utility logic. | 154 // The embedder API for participating in utility logic. |
159 ContentUtilityClient* utility_; | 155 ContentUtilityClient* utility_; |
160 }; | 156 }; |
161 | 157 |
162 } // namespace content | 158 } // namespace content |
163 | 159 |
164 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 160 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
OLD | NEW |