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: chrome/browser/guest_view/web_view/web_view_guest.h

Issue 378873002: Move permission check from GuestViewInternal to derived GuestView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@app_view_meat
Patch Set: Diff against tip of tree Created 6 years, 5 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_WEB_VIEW_GUEST_H_ 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // |items| == NULL means no filtering will be applied. 76 // |items| == NULL means no filtering will be applied.
77 void ShowContextMenu(int request_id, const MenuItemVector* items); 77 void ShowContextMenu(int request_id, const MenuItemVector* items);
78 78
79 // Sets the frame name of the guest. 79 // Sets the frame name of the guest.
80 void SetName(const std::string& name); 80 void SetName(const std::string& name);
81 81
82 // Set the zoom factor. 82 // Set the zoom factor.
83 void SetZoom(double zoom_factor); 83 void SetZoom(double zoom_factor);
84 84
85 // GuestViewBase implementation. 85 // GuestViewBase implementation.
86 virtual bool CanEmbedderUseGuestView(
87 const std::string& embedder_extension_id) OVERRIDE;
86 virtual void CreateWebContents( 88 virtual void CreateWebContents(
87 const std::string& embedder_extension_id, 89 const std::string& embedder_extension_id,
88 int embedder_render_process_id, 90 int embedder_render_process_id,
89 const base::DictionaryValue& create_params, 91 const base::DictionaryValue& create_params,
90 const WebContentsCreatedCallback& callback) OVERRIDE; 92 const WebContentsCreatedCallback& callback) OVERRIDE;
91 virtual void DidAttachToEmbedder() OVERRIDE; 93 virtual void DidAttachToEmbedder() OVERRIDE;
92 virtual void DidInitialize() OVERRIDE; 94 virtual void DidInitialize() OVERRIDE;
93 virtual void DidStopLoading() OVERRIDE; 95 virtual void DidStopLoading() OVERRIDE;
94 virtual void EmbedderDestroyed() OVERRIDE; 96 virtual void EmbedderDestroyed() OVERRIDE;
95 virtual void GuestDestroyed() OVERRIDE; 97 virtual void GuestDestroyed() OVERRIDE;
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 changed(false) {} 387 changed(false) {}
386 }; 388 };
387 389
388 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; 390 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap;
389 PendingWindowMap pending_new_windows_; 391 PendingWindowMap pending_new_windows_;
390 392
391 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 393 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
392 }; 394 };
393 395
394 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 396 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/guest_view/guest_view_base.cc ('k') | chrome/browser/guest_view/web_view/web_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698