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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 void RecordRapporURL(const std::string& metric, const GURL& url) override; | 142 void RecordRapporURL(const std::string& metric, const GURL& url) override; |
143 std::unique_ptr<blink::WebAppBannerClient> CreateAppBannerClient( | 143 std::unique_ptr<blink::WebAppBannerClient> CreateAppBannerClient( |
144 content::RenderFrame* render_frame) override; | 144 content::RenderFrame* render_frame) override; |
145 void AddImageContextMenuProperties( | 145 void AddImageContextMenuProperties( |
146 const blink::WebURLResponse& response, | 146 const blink::WebURLResponse& response, |
147 std::map<std::string, std::string>* properties) override; | 147 std::map<std::string, std::string>* properties) override; |
148 void RunScriptsAtDocumentStart(content::RenderFrame* render_frame) override; | 148 void RunScriptsAtDocumentStart(content::RenderFrame* render_frame) override; |
149 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override; | 149 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override; |
150 void DidInitializeServiceWorkerContextOnWorkerThread( | 150 void DidInitializeServiceWorkerContextOnWorkerThread( |
151 v8::Local<v8::Context> context, | 151 v8::Local<v8::Context> context, |
| 152 int embedded_worker_id, |
152 const GURL& url) override; | 153 const GURL& url) override; |
153 void WillDestroyServiceWorkerContextOnWorkerThread( | 154 void WillDestroyServiceWorkerContextOnWorkerThread( |
154 v8::Local<v8::Context> context, | 155 v8::Local<v8::Context> context, |
| 156 int embedded_worker_id, |
155 const GURL& url) override; | 157 const GURL& url) override; |
156 bool ShouldEnforceWebRTCRoutingPreferences() override; | 158 bool ShouldEnforceWebRTCRoutingPreferences() override; |
| 159 void InstallV8ExtensionForServiceWorkers() override; |
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. |
160 // Takes ownership of |spellcheck|. | 163 // Takes ownership of |spellcheck|. |
161 void SetSpellcheck(SpellCheck* spellcheck); | 164 void SetSpellcheck(SpellCheck* spellcheck); |
162 #endif | 165 #endif |
163 | 166 |
164 #if defined(ENABLE_PLUGINS) | 167 #if defined(ENABLE_PLUGINS) |
165 static blink::WebPlugin* CreatePlugin( | 168 static blink::WebPlugin* CreatePlugin( |
166 content::RenderFrame* render_frame, | 169 content::RenderFrame* render_frame, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 #if defined(ENABLE_PRINT_PREVIEW) | 217 #if defined(ENABLE_PRINT_PREVIEW) |
215 std::unique_ptr<ChromePDFPrintClient> pdf_print_client_; | 218 std::unique_ptr<ChromePDFPrintClient> pdf_print_client_; |
216 #endif | 219 #endif |
217 #if defined(ENABLE_PLUGINS) | 220 #if defined(ENABLE_PLUGINS) |
218 std::set<std::string> allowed_camera_device_origins_; | 221 std::set<std::string> allowed_camera_device_origins_; |
219 std::set<std::string> allowed_compositor_origins_; | 222 std::set<std::string> allowed_compositor_origins_; |
220 #endif | 223 #endif |
221 }; | 224 }; |
222 | 225 |
223 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 226 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |