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

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: MostLikelyContextType 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 const char* GetAPINamespace() 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 changed(false) {} 393 changed(false) {}
395 }; 394 };
396 395
397 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; 396 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap;
398 PendingWindowMap pending_new_windows_; 397 PendingWindowMap pending_new_windows_;
399 398
400 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 399 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
401 }; 400 };
402 401
403 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 402 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/guest_view/web_view/web_view_constants.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