Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(804)

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 1642283002: Deal with frame removal by content scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add AfterDidCreateDocumentElement/AfterDidFinishDocumentLoad Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // Allows an embedder to provide a blink::WebAppBannerClient. 298 // Allows an embedder to provide a blink::WebAppBannerClient.
299 virtual scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient( 299 virtual scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient(
300 RenderFrame* render_frame); 300 RenderFrame* render_frame);
301 301
302 // Gives the embedder a chance to add properties to the context menu. 302 // Gives the embedder a chance to add properties to the context menu.
303 // Currently only called when the context menu is for an image. 303 // Currently only called when the context menu is for an image.
304 virtual void AddImageContextMenuProperties( 304 virtual void AddImageContextMenuProperties(
305 const blink::WebURLResponse& response, 305 const blink::WebURLResponse& response,
306 std::map<std::string, std::string>* properties) {} 306 std::map<std::string, std::string>* properties) {}
307 307
308 // Notifies that a document element has been inserted in the frame's document.
309 // This may be called multiple times for the same document. This method may
310 // invalidate the frame, which resets the weak pointer.
311 virtual void AfterDidCreateDocumentElement(
nasko 2016/02/11 16:49:01 Why the "After" prefix? It is called from DidCreat
robwu 2016/02/11 17:51:08 It is called after the DidCreateDocumentElement ob
312 const base::WeakPtr<RenderFrame>& render_frame) {}
313
314 // Notifies that the DOM is ready in the frame's document.
315 // This method may invalidate the frame, which resets the weak pointer.
316 virtual void AfterDidFinishDocumentLoad(
317 const base::WeakPtr<RenderFrame>& render_frame) {}
318
308 // Notifies that a service worker context has been created. This function 319 // Notifies that a service worker context has been created. This function
309 // is called from the worker thread. 320 // is called from the worker thread.
310 virtual void DidInitializeServiceWorkerContextOnWorkerThread( 321 virtual void DidInitializeServiceWorkerContextOnWorkerThread(
311 v8::Local<v8::Context> context, 322 v8::Local<v8::Context> context,
312 const GURL& url) {} 323 const GURL& url) {}
313 324
314 // Notifies that a service worker context will be destroyed. This function 325 // Notifies that a service worker context will be destroyed. This function
315 // is called from the worker thread. 326 // is called from the worker thread.
316 virtual void WillDestroyServiceWorkerContextOnWorkerThread( 327 virtual void WillDestroyServiceWorkerContextOnWorkerThread(
317 v8::Local<v8::Context> context, 328 v8::Local<v8::Context> context,
318 const GURL& url) {} 329 const GURL& url) {}
319 330
320 // Whether this renderer should enforce preferences related to the WebRTC 331 // Whether this renderer should enforce preferences related to the WebRTC
321 // routing logic, i.e. allowing multiple routes and non-proxied UDP. 332 // routing logic, i.e. allowing multiple routes and non-proxied UDP.
322 virtual bool ShouldEnforceWebRTCRoutingPreferences(); 333 virtual bool ShouldEnforceWebRTCRoutingPreferences();
323 }; 334 };
324 335
325 } // namespace content 336 } // namespace content
326 337
327 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 338 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698