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

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

Issue 258373002: Towards moving guest management to chrome: Introduce GuestViewManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build Created 6 years, 7 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 "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "chrome/browser/extensions/tab_helper.h" 9 #include "chrome/browser/extensions/tab_helper.h"
10 #include "chrome/browser/guest_view/guest_view.h" 10 #include "chrome/browser/guest_view/guest_view.h"
(...skipping 23 matching lines...) Expand all
34 // API and manages the lifetime of <webview> extension events. WebViewGuest is 34 // API and manages the lifetime of <webview> extension events. WebViewGuest is
35 // created on attachment. That is, when a guest WebContents is associated with 35 // created on attachment. That is, when a guest WebContents is associated with
36 // a particular embedder WebContents. This happens on either initial navigation 36 // a particular embedder WebContents. This happens on either initial navigation
37 // or through the use of the New Window API, when a new window is attached to 37 // or through the use of the New Window API, when a new window is attached to
38 // a particular <webview>. 38 // a particular <webview>.
39 class WebViewGuest : public GuestView<WebViewGuest>, 39 class WebViewGuest : public GuestView<WebViewGuest>,
40 public content::NotificationObserver, 40 public content::NotificationObserver,
41 public content::WebContentsObserver { 41 public content::WebContentsObserver {
42 public: 42 public:
43 WebViewGuest(content::WebContents* guest_web_contents, 43 WebViewGuest(content::WebContents* guest_web_contents,
44 const std::string& embedder_extension_id); 44 const std::string& embedder_extension_id,
45 const base::WeakPtr<GuestViewBase>& opener);
45 46
46 // Returns guestview::kInstanceIDNone if |contents| does not correspond to a 47 // Returns guestview::kInstanceIDNone if |contents| does not correspond to a
47 // WebViewGuest. 48 // WebViewGuest.
48 static int GetViewInstanceId(content::WebContents* contents); 49 static int GetViewInstanceId(content::WebContents* contents);
49 static const char Type[]; 50 static const char Type[];
50 51
51 // GuestViewBase implementation. 52 // GuestViewBase implementation.
52 virtual void Attach(content::WebContents* embedder_web_contents, 53 virtual void Attach(content::WebContents* embedder_web_contents,
53 const base::DictionaryValue& args) OVERRIDE; 54 const base::DictionaryValue& args) OVERRIDE;
54 55
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 scoped_ptr<chromeos::AccessibilityStatusSubscription> 333 scoped_ptr<chromeos::AccessibilityStatusSubscription>
333 accessibility_subscription_; 334 accessibility_subscription_;
334 #endif 335 #endif
335 336
336 std::map<int, int> bridge_id_to_request_id_map_; 337 std::map<int, int> bridge_id_to_request_id_map_;
337 338
338 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 339 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
339 }; 340 };
340 341
341 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 342 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/guest_view/guest_view_manager.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