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

Side by Side Diff: chrome/browser/guest_view/web_view/web_view_guest.h

Issue 426593007: Refactor guest view availability to be API not permission based. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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( 86 virtual extensions::Feature* GetFeature() OVERRIDE;
87 const std::string& embedder_extension_id) OVERRIDE;
88 virtual void CreateWebContents( 87 virtual void CreateWebContents(
89 const std::string& embedder_extension_id, 88 const std::string& embedder_extension_id,
90 int embedder_render_process_id, 89 int embedder_render_process_id,
91 const base::DictionaryValue& create_params, 90 const base::DictionaryValue& create_params,
92 const WebContentsCreatedCallback& callback) OVERRIDE; 91 const WebContentsCreatedCallback& callback) OVERRIDE;
93 virtual void DidAttachToEmbedder() OVERRIDE; 92 virtual void DidAttachToEmbedder() OVERRIDE;
94 virtual void DidInitialize() OVERRIDE; 93 virtual void DidInitialize() OVERRIDE;
95 virtual void DidStopLoading() OVERRIDE; 94 virtual void DidStopLoading() OVERRIDE;
96 virtual void EmbedderDestroyed() OVERRIDE; 95 virtual void EmbedderDestroyed() OVERRIDE;
97 virtual void GuestDestroyed() OVERRIDE; 96 virtual void GuestDestroyed() OVERRIDE;
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 changed(false) {} 389 changed(false) {}
391 }; 390 };
392 391
393 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; 392 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap;
394 PendingWindowMap pending_new_windows_; 393 PendingWindowMap pending_new_windows_;
395 394
396 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 395 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
397 }; 396 };
398 397
399 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 398 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698