| 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 virtual void RunScriptsAtDocumentStart(RenderFrame* render_frame) {} | 332 virtual void RunScriptsAtDocumentStart(RenderFrame* render_frame) {} |
| 333 | 333 |
| 334 // Notifies that the DOM is ready in the frame's document. | 334 // Notifies that the DOM is ready in the frame's document. |
| 335 // This method may invalidate the frame. | 335 // This method may invalidate the frame. |
| 336 virtual void RunScriptsAtDocumentEnd(RenderFrame* render_frame) {} | 336 virtual void RunScriptsAtDocumentEnd(RenderFrame* render_frame) {} |
| 337 | 337 |
| 338 // Notifies that a service worker context has been created. This function | 338 // Notifies that a service worker context has been created. This function |
| 339 // is called from the worker thread. | 339 // is called from the worker thread. |
| 340 virtual void DidInitializeServiceWorkerContextOnWorkerThread( | 340 virtual void DidInitializeServiceWorkerContextOnWorkerThread( |
| 341 v8::Local<v8::Context> context, | 341 v8::Local<v8::Context> context, |
| 342 int embedded_worker_id, |
| 342 const GURL& url) {} | 343 const GURL& url) {} |
| 343 | 344 |
| 344 // Notifies that a service worker context will be destroyed. This function | 345 // Notifies that a service worker context will be destroyed. This function |
| 345 // is called from the worker thread. | 346 // is called from the worker thread. |
| 346 virtual void WillDestroyServiceWorkerContextOnWorkerThread( | 347 virtual void WillDestroyServiceWorkerContextOnWorkerThread( |
| 347 v8::Local<v8::Context> context, | 348 v8::Local<v8::Context> context, |
| 349 int embedded_worker_id, |
| 348 const GURL& url) {} | 350 const GURL& url) {} |
| 349 | 351 |
| 350 // Whether this renderer should enforce preferences related to the WebRTC | 352 // Whether this renderer should enforce preferences related to the WebRTC |
| 351 // routing logic, i.e. allowing multiple routes and non-proxied UDP. | 353 // routing logic, i.e. allowing multiple routes and non-proxied UDP. |
| 352 virtual bool ShouldEnforceWebRTCRoutingPreferences(); | 354 virtual bool ShouldEnforceWebRTCRoutingPreferences(); |
| 353 }; | 355 }; |
| 354 | 356 |
| 355 } // namespace content | 357 } // namespace content |
| 356 | 358 |
| 357 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 359 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |