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

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

Issue 620623002: Revert "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
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
43 // Called after the guest has been attached to an embedder and suspended 46 // Called after the guest has been attached to an embedder and suspended
44 // resource loads have been resumed. 47 // resource loads have been resumed.
45 virtual void OnDidAttachToEmbedder() = 0; 48 virtual void OnDidAttachToEmbedder() = 0;
46 49
47 // Called when the guest WebContents commits a provisional load in any frame. 50 // Called when the guest WebContents commits a provisional load in any frame.
48 virtual void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) = 0; 51 virtual void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) = 0;
49 52
50 // Called just after additional initialization is performed. 53 // Called just after additional initialization is performed.
51 virtual void OnDidInitialize() = 0; 54 virtual void OnDidInitialize() = 0;
52 55
(...skipping 11 matching lines...) Expand all
64 // menu items to contain only the items from |items|. 67 // menu items to contain only the items from |items|.
65 // |items| == NULL means no filtering will be applied. 68 // |items| == NULL means no filtering will be applied.
66 virtual void OnShowContextMenu( 69 virtual void OnShowContextMenu(
67 int request_id, 70 int request_id,
68 const MenuItemVector* items) = 0; 71 const MenuItemVector* items) = 0;
69 }; 72 };
70 73
71 } // namespace extensions 74 } // namespace extensions
72 75
73 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ 76 #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/api/_api_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698