Chromium Code Reviews| 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 331 | 331 |
| 332 // Notifies that a document element has been inserted in the frame's document. | 332 // Notifies that a document element has been inserted in the frame's document. |
| 333 // This may be called multiple times for the same document. This method may | 333 // This may be called multiple times for the same document. This method may |
| 334 // invalidate the frame. | 334 // invalidate the frame. |
| 335 virtual void RunScriptsAtDocumentStart(RenderFrame* render_frame) {} | 335 virtual void RunScriptsAtDocumentStart(RenderFrame* render_frame) {} |
| 336 | 336 |
| 337 // Notifies that the DOM is ready in the frame's document. | 337 // Notifies that the DOM is ready in the frame's document. |
| 338 // This method may invalidate the frame. | 338 // This method may invalidate the frame. |
| 339 virtual void RunScriptsAtDocumentEnd(RenderFrame* render_frame) {} | 339 virtual void RunScriptsAtDocumentEnd(RenderFrame* render_frame) {} |
| 340 | 340 |
| 341 // Allows subclasses to enable some runtime features before WebKit has | |
| 342 // started. | |
| 343 virtual void SetRuntimeFeaturesDefaultsBeforeWebKitInitialization() {} | |
|
clamy
2016/09/16 15:20:03
s/WebKit/Blink
| |
| 344 | |
| 341 // Notifies that a service worker context has been created. This function | 345 // Notifies that a service worker context has been created. This function |
| 342 // is called from the worker thread. | 346 // is called from the worker thread. |
| 343 virtual void DidInitializeServiceWorkerContextOnWorkerThread( | 347 virtual void DidInitializeServiceWorkerContextOnWorkerThread( |
| 344 v8::Local<v8::Context> context, | 348 v8::Local<v8::Context> context, |
| 345 int embedded_worker_id, | 349 int embedded_worker_id, |
| 346 const GURL& url) {} | 350 const GURL& url) {} |
| 347 | 351 |
| 348 // Notifies that a service worker context will be destroyed. This function | 352 // Notifies that a service worker context will be destroyed. This function |
| 349 // is called from the worker thread. | 353 // is called from the worker thread. |
| 350 virtual void WillDestroyServiceWorkerContextOnWorkerThread( | 354 virtual void WillDestroyServiceWorkerContextOnWorkerThread( |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 367 shell::InterfaceRegistry* interface_registry) {} | 371 shell::InterfaceRegistry* interface_registry) {} |
| 368 | 372 |
| 369 // Overwrites the given URL to use an HTML5 embed if possible. | 373 // Overwrites the given URL to use an HTML5 embed if possible. |
| 370 // An empty URL is returned if the URL is not overriden. | 374 // An empty URL is returned if the URL is not overriden. |
| 371 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); | 375 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); |
| 372 }; | 376 }; |
| 373 | 377 |
| 374 } // namespace content | 378 } // namespace content |
| 375 | 379 |
| 376 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 380 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |