| 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 <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 16 #include "content/public/renderer/content_renderer_client.h" | 16 #include "content/public/renderer/content_renderer_client.h" |
| 17 #include "ipc/ipc_channel_proxy.h" | 17 #include "ipc/ipc_channel_proxy.h" |
| 18 #include "v8/include/v8.h" |
| 18 | 19 |
| 19 class ChromeExtensionsDispatcherDelegate; | 20 class ChromeExtensionsDispatcherDelegate; |
| 20 class ChromeRenderProcessObserver; | 21 class ChromeRenderProcessObserver; |
| 21 #if defined(ENABLE_PRINT_PREVIEW) | 22 #if defined(ENABLE_PRINT_PREVIEW) |
| 22 class ChromePDFPrintClient; | 23 class ChromePDFPrintClient; |
| 23 #endif | 24 #endif |
| 24 class PrescientNetworkingDispatcher; | 25 class PrescientNetworkingDispatcher; |
| 25 #if defined(ENABLE_SPELLCHECK) | 26 #if defined(ENABLE_SPELLCHECK) |
| 26 class SpellCheck; | 27 class SpellCheck; |
| 27 class SpellCheckProvider; | 28 class SpellCheckProvider; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; |
| 153 void AddImageContextMenuProperties( | 154 void AddImageContextMenuProperties( |
| 154 const blink::WebURLResponse& response, | 155 const blink::WebURLResponse& response, |
| 155 std::map<std::string, std::string>* properties) override; | 156 std::map<std::string, std::string>* properties) override; |
| 156 | 157 void DidInitializeWorkerContext(v8::Local<v8::Context> context, |
| 158 const GURL& url) override; |
| 157 #if defined(ENABLE_EXTENSIONS) | 159 #if defined(ENABLE_EXTENSIONS) |
| 158 // Takes ownership. | 160 // Takes ownership. |
| 159 void SetExtensionDispatcherForTest( | 161 void SetExtensionDispatcherForTest( |
| 160 extensions::Dispatcher* extension_dispatcher); | 162 extensions::Dispatcher* extension_dispatcher); |
| 161 extensions::Dispatcher* GetExtensionDispatcherForTest(); | 163 extensions::Dispatcher* GetExtensionDispatcherForTest(); |
| 162 #endif | 164 #endif |
| 163 | 165 |
| 164 #if defined(ENABLE_SPELLCHECK) | 166 #if defined(ENABLE_SPELLCHECK) |
| 165 // Sets a new |spellcheck|. Used for testing only. | 167 // Sets a new |spellcheck|. Used for testing only. |
| 166 // Takes ownership of |spellcheck|. | 168 // Takes ownership of |spellcheck|. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 #if defined(ENABLE_PRINT_PREVIEW) | 247 #if defined(ENABLE_PRINT_PREVIEW) |
| 246 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; | 248 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; |
| 247 #endif | 249 #endif |
| 248 #if defined(ENABLE_PLUGINS) | 250 #if defined(ENABLE_PLUGINS) |
| 249 std::set<std::string> allowed_camera_device_origins_; | 251 std::set<std::string> allowed_camera_device_origins_; |
| 250 std::set<std::string> allowed_compositor_origins_; | 252 std::set<std::string> allowed_compositor_origins_; |
| 251 #endif | 253 #endif |
| 252 }; | 254 }; |
| 253 | 255 |
| 254 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 256 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |