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 CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
7 | 7 |
| 8 #include <map> |
8 #include <set> | 9 #include <set> |
9 #include <string> | 10 #include <string> |
10 #include <vector> | 11 #include <vector> |
11 | 12 |
12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
15 #include "content/public/renderer/content_renderer_client.h" | 16 #include "content/public/renderer/content_renderer_client.h" |
16 #include "ipc/ipc_channel_proxy.h" | 17 #include "ipc/ipc_channel_proxy.h" |
17 | 18 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 bool IsPluginAllowedToUseCompositorAPI(const GURL& url) override; | 144 bool IsPluginAllowedToUseCompositorAPI(const GURL& url) override; |
144 content::BrowserPluginDelegate* CreateBrowserPluginDelegate( | 145 content::BrowserPluginDelegate* CreateBrowserPluginDelegate( |
145 content::RenderFrame* render_frame, | 146 content::RenderFrame* render_frame, |
146 const std::string& mime_type, | 147 const std::string& mime_type, |
147 const GURL& original_url) override; | 148 const GURL& original_url) override; |
148 void RecordRappor(const std::string& metric, | 149 void RecordRappor(const std::string& metric, |
149 const std::string& sample) override; | 150 const std::string& sample) override; |
150 void RecordRapporURL(const std::string& metric, const GURL& url) override; | 151 void RecordRapporURL(const std::string& metric, const GURL& url) override; |
151 scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient( | 152 scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient( |
152 content::RenderFrame* render_frame) override; | 153 content::RenderFrame* render_frame) override; |
| 154 void AddImageContextMenuProperties( |
| 155 const blink::WebURLResponse& response, |
| 156 std::map<std::string, std::string>* properties) override; |
153 | 157 |
154 #if defined(ENABLE_EXTENSIONS) | 158 #if defined(ENABLE_EXTENSIONS) |
155 // Takes ownership. | 159 // Takes ownership. |
156 void SetExtensionDispatcherForTest( | 160 void SetExtensionDispatcherForTest( |
157 extensions::Dispatcher* extension_dispatcher); | 161 extensions::Dispatcher* extension_dispatcher); |
158 extensions::Dispatcher* GetExtensionDispatcherForTest(); | 162 extensions::Dispatcher* GetExtensionDispatcherForTest(); |
159 #endif | 163 #endif |
160 | 164 |
161 #if defined(ENABLE_SPELLCHECK) | 165 #if defined(ENABLE_SPELLCHECK) |
162 // Sets a new |spellcheck|. Used for testing only. | 166 // Sets a new |spellcheck|. Used for testing only. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 #if defined(ENABLE_PRINT_PREVIEW) | 243 #if defined(ENABLE_PRINT_PREVIEW) |
240 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; | 244 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; |
241 #endif | 245 #endif |
242 #if defined(ENABLE_PLUGINS) | 246 #if defined(ENABLE_PLUGINS) |
243 std::set<std::string> allowed_camera_device_origins_; | 247 std::set<std::string> allowed_camera_device_origins_; |
244 std::set<std::string> allowed_compositor_origins_; | 248 std::set<std::string> allowed_compositor_origins_; |
245 #endif | 249 #endif |
246 }; | 250 }; |
247 | 251 |
248 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 252 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |