| 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 whether the given message should be sent in a swapped out renderer. |
| 108 virtual bool CanSendWhileSwappedOut(const IPC::Message* message); |
| 109 |
| 107 // Returns whether the given message should be processed in the browser on | 110 // Returns whether the given message should be processed in the browser on |
| 108 // behalf of a swapped out renderer. | 111 // behalf of a swapped out renderer. |
| 109 virtual bool CanHandleWhileSwappedOut(const IPC::Message& message); | 112 virtual bool CanHandleWhileSwappedOut(const IPC::Message& message); |
| 110 | 113 |
| 111 // Returns a string describing the embedder version. Used as part of the | 114 // Returns a string describing the embedder version. Used as part of the |
| 112 // user agent string. | 115 // user agent string. |
| 113 virtual std::string GetProduct() const; | 116 virtual std::string GetProduct() const; |
| 114 | 117 |
| 115 // Returns the user agent. | 118 // Returns the user agent. |
| 116 virtual std::string GetUserAgent() const; | 119 virtual std::string GetUserAgent() const; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 ContentPluginClient* plugin_; | 162 ContentPluginClient* plugin_; |
| 160 // The embedder API for participating in renderer logic. | 163 // The embedder API for participating in renderer logic. |
| 161 ContentRendererClient* renderer_; | 164 ContentRendererClient* renderer_; |
| 162 // The embedder API for participating in utility logic. | 165 // The embedder API for participating in utility logic. |
| 163 ContentUtilityClient* utility_; | 166 ContentUtilityClient* utility_; |
| 164 }; | 167 }; |
| 165 | 168 |
| 166 } // namespace content | 169 } // namespace content |
| 167 | 170 |
| 168 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 171 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| OLD | NEW |