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

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: Up to #50: ExtensionFrameHelper callbacks, comments 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>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/memory/weak_ptr.h"
18 #include "base/strings/string16.h" 17 #include "base/strings/string16.h"
19 #include "content/public/common/content_client.h" 18 #include "content/public/common/content_client.h"
20 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 19 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
21 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" 20 #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
22 #include "third_party/WebKit/public/web/WebNavigationType.h" 21 #include "third_party/WebKit/public/web/WebNavigationType.h"
23 #include "ui/base/page_transition_types.h" 22 #include "ui/base/page_transition_types.h"
24 #include "v8/include/v8.h" 23 #include "v8/include/v8.h"
25 24
26 class GURL; 25 class GURL;
27 class SkBitmap; 26 class SkBitmap;
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // Allows an embedder to provide a blink::WebAppBannerClient. 297 // Allows an embedder to provide a blink::WebAppBannerClient.
299 virtual scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient( 298 virtual scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient(
300 RenderFrame* render_frame); 299 RenderFrame* render_frame);
301 300
302 // Gives the embedder a chance to add properties to the context menu. 301 // Gives the embedder a chance to add properties to the context menu.
303 // Currently only called when the context menu is for an image. 302 // Currently only called when the context menu is for an image.
304 virtual void AddImageContextMenuProperties( 303 virtual void AddImageContextMenuProperties(
305 const blink::WebURLResponse& response, 304 const blink::WebURLResponse& response,
306 std::map<std::string, std::string>* properties) {} 305 std::map<std::string, std::string>* properties) {}
307 306
307 // Notifies that a document element has been inserted in the frame's document.
308 // This may be called multiple times for the same document. This method may
309 // invalidate the frame.
esprehn 2016/02/17 01:43:47 This should be specific to extensions, This should
310 virtual void AfterDidCreateDocumentElement(RenderFrame* render_frame) {}
311
312 // Notifies that the DOM is ready in the frame's document.
313 // This method may invalidate the frame.
314 virtual void AfterDidFinishDocumentLoad(RenderFrame* render_frame) {}
esprehn 2016/02/17 01:43:47 ditto
315
308 // Notifies that a service worker context has been created. This function 316 // Notifies that a service worker context has been created. This function
309 // is called from the worker thread. 317 // is called from the worker thread.
310 virtual void DidInitializeServiceWorkerContextOnWorkerThread( 318 virtual void DidInitializeServiceWorkerContextOnWorkerThread(
311 v8::Local<v8::Context> context, 319 v8::Local<v8::Context> context,
312 const GURL& url) {} 320 const GURL& url) {}
313 321
314 // Notifies that a service worker context will be destroyed. This function 322 // Notifies that a service worker context will be destroyed. This function
315 // is called from the worker thread. 323 // is called from the worker thread.
316 virtual void WillDestroyServiceWorkerContextOnWorkerThread( 324 virtual void WillDestroyServiceWorkerContextOnWorkerThread(
317 v8::Local<v8::Context> context, 325 v8::Local<v8::Context> context,
318 const GURL& url) {} 326 const GURL& url) {}
319 327
320 // Whether this renderer should enforce preferences related to the WebRTC 328 // Whether this renderer should enforce preferences related to the WebRTC
321 // routing logic, i.e. allowing multiple routes and non-proxied UDP. 329 // routing logic, i.e. allowing multiple routes and non-proxied UDP.
322 virtual bool ShouldEnforceWebRTCRoutingPreferences(); 330 virtual bool ShouldEnforceWebRTCRoutingPreferences();
323 }; 331 };
324 332
325 } // namespace content 333 } // namespace content
326 334
327 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 335 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698