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

Side by Side Diff: chrome/browser/guest_view/web_view/chrome_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
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 CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
7 7
8 #include "chrome/browser/extensions/api/web_view/chrome_web_view_internal_api.h" 8 #include "chrome/browser/extensions/api/web_view/chrome_web_view_internal_api.h"
9 #include "chrome/browser/ui/zoom/zoom_observer.h" 9 #include "chrome/browser/ui/zoom/zoom_observer.h"
10 #include "extensions/browser/guest_view/web_view/web_view_guest.h" 10 #include "extensions/browser/guest_view/web_view/web_view_guest.h"
(...skipping 14 matching lines...) Expand all
25 public : 25 public :
26 explicit ChromeWebViewGuestDelegate( 26 explicit ChromeWebViewGuestDelegate(
27 extensions::WebViewGuest* web_view_guest); 27 extensions::WebViewGuest* web_view_guest);
28 virtual ~ChromeWebViewGuestDelegate(); 28 virtual ~ChromeWebViewGuestDelegate();
29 29
30 // WebViewGuestDelegate implementation. 30 // WebViewGuestDelegate implementation.
31 virtual double GetZoom() OVERRIDE; 31 virtual double GetZoom() OVERRIDE;
32 virtual bool HandleContextMenu( 32 virtual bool HandleContextMenu(
33 const content::ContextMenuParams& params) OVERRIDE; 33 const content::ContextMenuParams& params) OVERRIDE;
34 virtual void OnAttachWebViewHelpers(content::WebContents* contents) OVERRIDE; 34 virtual void OnAttachWebViewHelpers(content::WebContents* contents) OVERRIDE;
35 virtual void OnEmbedderDestroyed() OVERRIDE;
36 virtual void OnDidAttachToEmbedder() OVERRIDE; 35 virtual void OnDidAttachToEmbedder() OVERRIDE;
37 virtual void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) OVERRIDE; 36 virtual void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) OVERRIDE;
38 virtual void OnDidInitialize() OVERRIDE; 37 virtual void OnDidInitialize() OVERRIDE;
39 virtual void OnDocumentLoadedInFrame( 38 virtual void OnDocumentLoadedInFrame(
40 content::RenderFrameHost* render_frame_host) OVERRIDE; 39 content::RenderFrameHost* render_frame_host) OVERRIDE;
41 virtual void OnGuestDestroyed() OVERRIDE; 40 virtual void OnGuestDestroyed() OVERRIDE;
42 virtual void OnSetZoom(double zoom_factor) OVERRIDE; 41 virtual void OnSetZoom(double zoom_factor) OVERRIDE;
43 virtual void OnShowContextMenu( 42 virtual void OnShowContextMenu(
44 int request_id, 43 int request_id,
45 const MenuItemVector* items) OVERRIDE; 44 const MenuItemVector* items) OVERRIDE;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 accessibility_subscription_; 86 accessibility_subscription_;
88 #endif 87 #endif
89 88
90 extensions::WebViewGuest* const web_view_guest_; 89 extensions::WebViewGuest* const web_view_guest_;
91 90
92 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate); 91 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate);
93 }; 92 };
94 93
95 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ 94 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
96 95
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698