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

Side by Side Diff: extensions/browser/guest_view/app_view/app_view_guest.h

Issue 1102173002: Move GuestView layer in browser to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Mac Build + GN Test builds Created 5 years, 8 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 EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_
7 7
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "components/guest_view/browser/guest_view.h"
9 #include "extensions/browser/extension_function_dispatcher.h" 10 #include "extensions/browser/extension_function_dispatcher.h"
10 #include "extensions/browser/guest_view/app_view/app_view_guest_delegate.h" 11 #include "extensions/browser/guest_view/app_view/app_view_guest_delegate.h"
11 #include "extensions/browser/guest_view/guest_view.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 class Extension; 14 class Extension;
15 class ExtensionHost; 15 class ExtensionHost;
16 16
17 // An AppViewGuest provides the browser-side implementation of <appview> API. 17 // An AppViewGuest provides the browser-side implementation of <appview> API.
18 // AppViewGuest is created on attachment. That is, when a guest WebContents is 18 // AppViewGuest is created on attachment. That is, when a guest WebContents is
19 // associated with a particular embedder WebContents. This happens on calls to 19 // associated with a particular embedder WebContents. This happens on calls to
20 // the connect API. 20 // the connect API.
21 class AppViewGuest : public GuestView<AppViewGuest>, 21 class AppViewGuest : public guestview::GuestView<AppViewGuest>,
22 public ExtensionFunctionDispatcher::Delegate { 22 public ExtensionFunctionDispatcher::Delegate {
23 public: 23 public:
24 static const char Type[]; 24 static const char Type[];
25 25
26 // Completes the creation of a WebContents associated with the provided 26 // Completes the creation of a WebContents associated with the provided
27 // |guest_extensions_id|. 27 // |guest_extensions_id|.
28 static bool CompletePendingRequest( 28 static bool CompletePendingRequest(
29 content::BrowserContext* browser_context, 29 content::BrowserContext* browser_context,
30 const GURL& url, 30 const GURL& url,
31 int guest_instance_id, 31 int guest_instance_id,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // This is used to ensure pending tasks will not fire after this object is 85 // This is used to ensure pending tasks will not fire after this object is
86 // destroyed. 86 // destroyed.
87 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; 87 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); 89 DISALLOW_COPY_AND_ASSIGN(AppViewGuest);
90 }; 90 };
91 91
92 } // namespace extensions 92 } // namespace extensions
93 93
94 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ 94 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698