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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_guest_delegate.h

Issue 596003002: Allow declarative webrequest and webrequest in extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_guest.cc ('k') | extensions/common/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_
7 7
8 #include "extensions/browser/guest_view/guest_view_base.h" 8 #include "extensions/browser/guest_view/guest_view_base.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 22 matching lines...) Expand all
33 33
34 // Returns the current zoom factor. 34 // Returns the current zoom factor.
35 virtual double GetZoom() = 0; 35 virtual double GetZoom() = 0;
36 36
37 // Called when context menu operation was handled. 37 // Called when context menu operation was handled.
38 virtual bool HandleContextMenu(const content::ContextMenuParams& params) = 0; 38 virtual bool HandleContextMenu(const content::ContextMenuParams& params) = 0;
39 39
40 // Called to attach helpers just after additional initialization is performed. 40 // Called to attach helpers just after additional initialization is performed.
41 virtual void OnAttachWebViewHelpers(content::WebContents* contents) = 0; 41 virtual void OnAttachWebViewHelpers(content::WebContents* contents) = 0;
42 42
43 // Called to perform some cleanup prior to destruction.
44 virtual void OnEmbedderDestroyed() = 0;
45
46 // Called after the guest has been attached to an embedder and suspended 43 // Called after the guest has been attached to an embedder and suspended
47 // resource loads have been resumed. 44 // resource loads have been resumed.
48 virtual void OnDidAttachToEmbedder() = 0; 45 virtual void OnDidAttachToEmbedder() = 0;
49 46
50 // Called when the guest WebContents commits a provisional load in any frame. 47 // Called when the guest WebContents commits a provisional load in any frame.
51 virtual void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) = 0; 48 virtual void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) = 0;
52 49
53 // Called just after additional initialization is performed. 50 // Called just after additional initialization is performed.
54 virtual void OnDidInitialize() = 0; 51 virtual void OnDidInitialize() = 0;
55 52
(...skipping 11 matching lines...) Expand all
67 // menu items to contain only the items from |items|. 64 // menu items to contain only the items from |items|.
68 // |items| == NULL means no filtering will be applied. 65 // |items| == NULL means no filtering will be applied.
69 virtual void OnShowContextMenu( 66 virtual void OnShowContextMenu(
70 int request_id, 67 int request_id,
71 const MenuItemVector* items) = 0; 68 const MenuItemVector* items) = 0;
72 }; 69 };
73 70
74 } // namespace extensions 71 } // namespace extensions
75 72
76 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ 73 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_guest.cc ('k') | extensions/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698