| 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 CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 virtual void RunScriptsAtDocumentStart(RenderFrame* render_frame) {} | 324 virtual void RunScriptsAtDocumentStart(RenderFrame* render_frame) {} |
| 325 | 325 |
| 326 // Notifies that the DOM is ready in the frame's document. | 326 // Notifies that the DOM is ready in the frame's document. |
| 327 // This method may invalidate the frame. | 327 // This method may invalidate the frame. |
| 328 virtual void RunScriptsAtDocumentEnd(RenderFrame* render_frame) {} | 328 virtual void RunScriptsAtDocumentEnd(RenderFrame* render_frame) {} |
| 329 | 329 |
| 330 // Notifies that a service worker context has been created. This function | 330 // Notifies that a service worker context has been created. This function |
| 331 // is called from the worker thread. | 331 // is called from the worker thread. |
| 332 virtual void DidInitializeServiceWorkerContextOnWorkerThread( | 332 virtual void DidInitializeServiceWorkerContextOnWorkerThread( |
| 333 v8::Local<v8::Context> context, | 333 v8::Local<v8::Context> context, |
| 334 int embedded_worker_id, |
| 334 const GURL& url) {} | 335 const GURL& url) {} |
| 335 | 336 |
| 336 // Notifies that a service worker context will be destroyed. This function | 337 // Notifies that a service worker context will be destroyed. This function |
| 337 // is called from the worker thread. | 338 // is called from the worker thread. |
| 338 virtual void WillDestroyServiceWorkerContextOnWorkerThread( | 339 virtual void WillDestroyServiceWorkerContextOnWorkerThread( |
| 339 v8::Local<v8::Context> context, | 340 v8::Local<v8::Context> context, |
| 341 int embedded_worker_id, |
| 340 const GURL& url) {} | 342 const GURL& url) {} |
| 341 | 343 |
| 342 // Whether this renderer should enforce preferences related to the WebRTC | 344 // Whether this renderer should enforce preferences related to the WebRTC |
| 343 // routing logic, i.e. allowing multiple routes and non-proxied UDP. | 345 // routing logic, i.e. allowing multiple routes and non-proxied UDP. |
| 344 virtual bool ShouldEnforceWebRTCRoutingPreferences(); | 346 virtual bool ShouldEnforceWebRTCRoutingPreferences(); |
| 347 |
| 348 // Asks the renderer to install V8 extension for service workers. |
| 349 virtual void InstallV8ExtensionForServiceWorkers() {} |
| 345 }; | 350 }; |
| 346 | 351 |
| 347 } // namespace content | 352 } // namespace content |
| 348 | 353 |
| 349 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 354 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |