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