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