| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 312 |
| 313 // Notifies that a document element has been inserted in the frame's document. | 313 // Notifies that a document element has been inserted in the frame's document. |
| 314 // This may be called multiple times for the same document. This method may | 314 // This may be called multiple times for the same document. This method may |
| 315 // invalidate the frame. | 315 // invalidate the frame. |
| 316 virtual void RunScriptsAtDocumentStart(RenderFrame* render_frame) {} | 316 virtual void RunScriptsAtDocumentStart(RenderFrame* render_frame) {} |
| 317 | 317 |
| 318 // Notifies that the DOM is ready in the frame's document. | 318 // Notifies that the DOM is ready in the frame's document. |
| 319 // This method may invalidate the frame. | 319 // This method may invalidate the frame. |
| 320 virtual void RunScriptsAtDocumentEnd(RenderFrame* render_frame) {} | 320 virtual void RunScriptsAtDocumentEnd(RenderFrame* render_frame) {} |
| 321 | 321 |
| 322 // Notifies that the window.onload event is about to fire. |
| 323 // This method may invalidate the frame. |
| 324 virtual void RunScriptsAtDocumentIdle(RenderFrame* render_frame) {} |
| 325 |
| 322 // Allows subclasses to enable some runtime features before Blink has | 326 // Allows subclasses to enable some runtime features before Blink has |
| 323 // started. | 327 // started. |
| 324 virtual void SetRuntimeFeaturesDefaultsBeforeBlinkInitialization() {} | 328 virtual void SetRuntimeFeaturesDefaultsBeforeBlinkInitialization() {} |
| 325 | 329 |
| 326 // Notifies that a service worker context has been created. This function | 330 // Notifies that a service worker context has been created. This function |
| 327 // is called from the worker thread. | 331 // is called from the worker thread. |
| 328 virtual void DidInitializeServiceWorkerContextOnWorkerThread( | 332 virtual void DidInitializeServiceWorkerContextOnWorkerThread( |
| 329 v8::Local<v8::Context> context, | 333 v8::Local<v8::Context> context, |
| 330 int64_t service_worker_version_id, | 334 int64_t service_worker_version_id, |
| 331 const GURL& url) {} | 335 const GURL& url) {} |
| (...skipping 30 matching lines...) Expand all Loading... |
| 362 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* | 366 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* |
| 363 index_to_traits_callback) {} | 367 index_to_traits_callback) {} |
| 364 | 368 |
| 365 // Returns true if the media pipeline can be suspended, or false otherwise. | 369 // Returns true if the media pipeline can be suspended, or false otherwise. |
| 366 virtual bool AllowMediaSuspend(); | 370 virtual bool AllowMediaSuspend(); |
| 367 }; | 371 }; |
| 368 | 372 |
| 369 } // namespace content | 373 } // namespace content |
| 370 | 374 |
| 371 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 375 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |