| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "base/strings/string_piece.h" | 14 #include "base/strings/string_piece.h" |
| 15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "ui/base/layout.h" | 17 #include "ui/base/layout.h" |
| 18 #include "url/url_util.h" | |
| 19 | 18 |
| 20 class GURL; | 19 class GURL; |
| 21 | 20 |
| 22 namespace base { | 21 namespace base { |
| 23 class RefCountedStaticMemory; | 22 class RefCountedStaticMemory; |
| 24 } | 23 } |
| 25 | 24 |
| 26 namespace IPC { | 25 namespace IPC { |
| 27 class Message; | 26 class Message; |
| 28 } | 27 } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // Sets the data on the current gpu. | 82 // Sets the data on the current gpu. |
| 84 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) {} | 83 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) {} |
| 85 | 84 |
| 86 // Gives the embedder a chance to register its own pepper plugins. | 85 // Gives the embedder a chance to register its own pepper plugins. |
| 87 virtual void AddPepperPlugins( | 86 virtual void AddPepperPlugins( |
| 88 std::vector<content::PepperPluginInfo>* plugins) {} | 87 std::vector<content::PepperPluginInfo>* plugins) {} |
| 89 | 88 |
| 90 // Gives the embedder a chance to register its own standard and saveable | 89 // Gives the embedder a chance to register its own standard and saveable |
| 91 // url schemes early on in the startup sequence. | 90 // url schemes early on in the startup sequence. |
| 92 virtual void AddAdditionalSchemes( | 91 virtual void AddAdditionalSchemes( |
| 93 std::vector<url::SchemeWithType>* standard_schemes, | 92 std::vector<std::string>* standard_schemes, |
| 94 std::vector<std::string>* savable_schemes) {} | 93 std::vector<std::string>* savable_schemes) {} |
| 95 | 94 |
| 96 // Returns whether the given message should be sent in a swapped out renderer. | 95 // Returns whether the given message should be sent in a swapped out renderer. |
| 97 virtual bool CanSendWhileSwappedOut(const IPC::Message* message); | 96 virtual bool CanSendWhileSwappedOut(const IPC::Message* message); |
| 98 | 97 |
| 99 // Returns a string describing the embedder product name and version, | 98 // Returns a string describing the embedder product name and version, |
| 100 // of the form "productname/version", with no other slashes. | 99 // of the form "productname/version", with no other slashes. |
| 101 // Used as part of the user agent string. | 100 // Used as part of the user agent string. |
| 102 virtual std::string GetProduct() const; | 101 virtual std::string GetProduct() const; |
| 103 | 102 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 ContentPluginClient* plugin_; | 156 ContentPluginClient* plugin_; |
| 158 // The embedder API for participating in renderer logic. | 157 // The embedder API for participating in renderer logic. |
| 159 ContentRendererClient* renderer_; | 158 ContentRendererClient* renderer_; |
| 160 // The embedder API for participating in utility logic. | 159 // The embedder API for participating in utility logic. |
| 161 ContentUtilityClient* utility_; | 160 ContentUtilityClient* utility_; |
| 162 }; | 161 }; |
| 163 | 162 |
| 164 } // namespace content | 163 } // namespace content |
| 165 | 164 |
| 166 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 165 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| OLD | NEW |