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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 void RecordRapporURL(const std::string& metric, const GURL& url) override; | 180 void RecordRapporURL(const std::string& metric, const GURL& url) override; |
181 void AddImageContextMenuProperties( | 181 void AddImageContextMenuProperties( |
182 const blink::WebURLResponse& response, | 182 const blink::WebURLResponse& response, |
183 std::map<std::string, std::string>* properties) override; | 183 std::map<std::string, std::string>* properties) override; |
184 void RunScriptsAtDocumentStart(content::RenderFrame* render_frame) override; | 184 void RunScriptsAtDocumentStart(content::RenderFrame* render_frame) override; |
185 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override; | 185 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override; |
186 void RunScriptsAtDocumentIdle(content::RenderFrame* render_frame) override; | 186 void RunScriptsAtDocumentIdle(content::RenderFrame* render_frame) override; |
187 void DidInitializeServiceWorkerContextOnWorkerThread( | 187 void DidInitializeServiceWorkerContextOnWorkerThread( |
188 v8::Local<v8::Context> context, | 188 v8::Local<v8::Context> context, |
189 int64_t service_worker_version_id, | 189 int64_t service_worker_version_id, |
190 const GURL& url) override; | 190 const GURL& service_worker_scope, |
| 191 const GURL& script_url) override; |
191 void WillDestroyServiceWorkerContextOnWorkerThread( | 192 void WillDestroyServiceWorkerContextOnWorkerThread( |
192 v8::Local<v8::Context> context, | 193 v8::Local<v8::Context> context, |
193 int64_t service_worker_version_id, | 194 int64_t service_worker_version_id, |
194 const GURL& url) override; | 195 const GURL& service_worker_scope, |
| 196 const GURL& script_url) override; |
195 bool ShouldEnforceWebRTCRoutingPreferences() override; | 197 bool ShouldEnforceWebRTCRoutingPreferences() override; |
196 GURL OverrideFlashEmbedWithHTML(const GURL& url) override; | 198 GURL OverrideFlashEmbedWithHTML(const GURL& url) override; |
197 std::unique_ptr<base::TaskScheduler::InitParams> GetTaskSchedulerInitParams() | 199 std::unique_ptr<base::TaskScheduler::InitParams> GetTaskSchedulerInitParams() |
198 override; | 200 override; |
199 | 201 |
200 #if BUILDFLAG(ENABLE_SPELLCHECK) | 202 #if BUILDFLAG(ENABLE_SPELLCHECK) |
201 // Sets a new |spellcheck|. Used for testing only. | 203 // Sets a new |spellcheck|. Used for testing only. |
202 // Takes ownership of |spellcheck|. | 204 // Takes ownership of |spellcheck|. |
203 void SetSpellcheck(SpellCheck* spellcheck); | 205 void SetSpellcheck(SpellCheck* spellcheck); |
204 #endif | 206 #endif |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // Observes module load and unload events and notifies the ModuleDatabase in | 281 // Observes module load and unload events and notifies the ModuleDatabase in |
280 // the browser process. | 282 // the browser process. |
281 std::unique_ptr<ModuleWatcher> module_watcher_; | 283 std::unique_ptr<ModuleWatcher> module_watcher_; |
282 mojom::ModuleEventSinkPtr module_event_sink_; | 284 mojom::ModuleEventSinkPtr module_event_sink_; |
283 #endif | 285 #endif |
284 | 286 |
285 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient); | 287 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient); |
286 }; | 288 }; |
287 | 289 |
288 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 290 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |