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/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "ui/base/layout.h" | 16 #include "ui/base/layout.h" |
17 #include "url/gurl.h" | |
17 #include "url/url_util.h" | 18 #include "url/url_util.h" |
18 | 19 |
19 class GURL; | |
20 | |
21 namespace base { | 20 namespace base { |
22 class RefCountedStaticMemory; | 21 class RefCountedStaticMemory; |
23 } | 22 } |
24 | 23 |
25 namespace IPC { | 24 namespace IPC { |
26 class Message; | 25 class Message; |
27 } | 26 } |
28 | 27 |
29 namespace gfx { | 28 namespace gfx { |
30 class Image; | 29 class Image; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
71 ContentClient(); | 70 ContentClient(); |
72 virtual ~ContentClient(); | 71 virtual ~ContentClient(); |
73 | 72 |
74 ContentBrowserClient* browser() { return browser_; } | 73 ContentBrowserClient* browser() { return browser_; } |
75 ContentPluginClient* plugin() { return plugin_; } | 74 ContentPluginClient* plugin() { return plugin_; } |
76 ContentRendererClient* renderer() { return renderer_; } | 75 ContentRendererClient* renderer() { return renderer_; } |
77 ContentUtilityClient* utility() { return utility_; } | 76 ContentUtilityClient* utility() { return utility_; } |
78 | 77 |
79 // Sets the currently active URL. Use GURL() to clear the URL. | 78 // Sets the currently active URL. Use GURL() to clear the URL. |
80 virtual void SetActiveURL(const GURL& url) {} | 79 virtual void SetActiveURL(const GURL& url) {} |
80 void SetActiveURL(const std::string& url); | |
piman
2016/02/18 18:29:28
nit: avoid overloads, especially with one method v
Mark Dittmer
2016/02/19 14:58:45
Refactored call into SetActiveURL to plumb through
| |
81 | 81 |
82 // Sets the data on the current gpu. | 82 // Sets the data on the current gpu. |
83 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) {} | 83 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) {} |
84 | 84 |
85 // Gives the embedder a chance to register its own pepper plugins. | 85 // Gives the embedder a chance to register its own pepper plugins. |
86 virtual void AddPepperPlugins( | 86 virtual void AddPepperPlugins( |
87 std::vector<content::PepperPluginInfo>* plugins) {} | 87 std::vector<content::PepperPluginInfo>* plugins) {} |
88 | 88 |
89 // 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 |
90 // url schemes early on in the startup sequence. | 90 // url schemes early on in the startup sequence. |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
163 ContentPluginClient* plugin_; | 163 ContentPluginClient* plugin_; |
164 // The embedder API for participating in renderer logic. | 164 // The embedder API for participating in renderer logic. |
165 ContentRendererClient* renderer_; | 165 ContentRendererClient* renderer_; |
166 // The embedder API for participating in utility logic. | 166 // The embedder API for participating in utility logic. |
167 ContentUtilityClient* utility_; | 167 ContentUtilityClient* utility_; |
168 }; | 168 }; |
169 | 169 |
170 } // namespace content | 170 } // namespace content |
171 | 171 |
172 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 172 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
OLD | NEW |