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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 blink::WebFrame* frame) override; | 140 blink::WebFrame* frame) override; |
141 bool AllowPepperMediaStreamAPI(const GURL& url) override; | 141 bool AllowPepperMediaStreamAPI(const GURL& url) override; |
142 void AddKeySystems(std::vector<media::KeySystemInfo>* key_systems) override; | 142 void AddKeySystems(std::vector<media::KeySystemInfo>* key_systems) override; |
143 bool IsPluginAllowedToUseDevChannelAPIs() override; | 143 bool IsPluginAllowedToUseDevChannelAPIs() override; |
144 bool IsPluginAllowedToUseCameraDeviceAPI(const GURL& url) override; | 144 bool IsPluginAllowedToUseCameraDeviceAPI(const GURL& url) override; |
145 bool IsPluginAllowedToUseCompositorAPI(const GURL& url) override; | 145 bool IsPluginAllowedToUseCompositorAPI(const GURL& url) override; |
146 content::BrowserPluginDelegate* CreateBrowserPluginDelegate( | 146 content::BrowserPluginDelegate* CreateBrowserPluginDelegate( |
147 content::RenderFrame* render_frame, | 147 content::RenderFrame* render_frame, |
148 const std::string& mime_type, | 148 const std::string& mime_type, |
149 const GURL& original_url) override; | 149 const GURL& original_url) override; |
| 150 void RecordRappor(const std::string& metric, |
| 151 const std::string& sample) override; |
| 152 void RecordRapporURL(const std::string& metric, const GURL& url) override; |
150 | 153 |
151 #if defined(ENABLE_EXTENSIONS) | 154 #if defined(ENABLE_EXTENSIONS) |
152 // Takes ownership. | 155 // Takes ownership. |
153 void SetExtensionDispatcherForTest( | 156 void SetExtensionDispatcherForTest( |
154 extensions::Dispatcher* extension_dispatcher); | 157 extensions::Dispatcher* extension_dispatcher); |
155 extensions::Dispatcher* GetExtensionDispatcherForTest(); | 158 extensions::Dispatcher* GetExtensionDispatcherForTest(); |
156 #endif | 159 #endif |
157 | 160 |
158 #if defined(ENABLE_SPELLCHECK) | 161 #if defined(ENABLE_SPELLCHECK) |
159 // Sets a new |spellcheck|. Used for testing only. | 162 // Sets a new |spellcheck|. Used for testing only. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 #if defined(ENABLE_PRINT_PREVIEW) | 239 #if defined(ENABLE_PRINT_PREVIEW) |
237 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; | 240 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; |
238 #endif | 241 #endif |
239 #if defined(ENABLE_PLUGINS) | 242 #if defined(ENABLE_PLUGINS) |
240 std::set<std::string> allowed_camera_device_origins_; | 243 std::set<std::string> allowed_camera_device_origins_; |
241 std::set<std::string> allowed_compositor_origins_; | 244 std::set<std::string> allowed_compositor_origins_; |
242 #endif | 245 #endif |
243 }; | 246 }; |
244 | 247 |
245 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 248 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |