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

Side by Side Diff: extensions/browser/guest_view/extensions_guest_view_manager_delegate.h

Issue 1102173002: Move GuestView layer in browser to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test change to build Created 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_EXTENSIONS_GUEST_VIEW_MANAGER_DELEGATE_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MANAGER_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MANAGER_DELEGATE_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MANAGER_DELEGATE_H_
7 7
8 #include "extensions/browser/guest_view/guest_view_manager_delegate.h" 8 #include "components/guest_view/browser/guest_view_manager_delegate.h"
9 9
10 namespace content { 10 namespace content {
11 class BrowserContext; 11 class BrowserContext;
12 } // namespace content 12 } // namespace content
13 13
14 namespace extensions { 14 namespace extensions {
15 class GuestViewBase;
16 class GuestViewManager;
17 } // namespace extensions
18
19 namespace extensions {
20 15
21 // ExtensionsGuestViewManagerDelegate implements GuestViewManager functionality 16 // ExtensionsGuestViewManagerDelegate implements GuestViewManager functionality
22 // specific to Chromium builds that include the extensions module. 17 // specific to Chromium builds that include the extensions module.
23 class ExtensionsGuestViewManagerDelegate 18 class ExtensionsGuestViewManagerDelegate
24 : public guestview::GuestViewManagerDelegate { 19 : public guestview::GuestViewManagerDelegate {
25 public: 20 public:
26 explicit ExtensionsGuestViewManagerDelegate(content::BrowserContext* context); 21 explicit ExtensionsGuestViewManagerDelegate(content::BrowserContext* context);
27 ~ExtensionsGuestViewManagerDelegate() override; 22 ~ExtensionsGuestViewManagerDelegate() override;
28 23
29 // GuestViewManagerDelegate implementation. 24 // GuestViewManagerDelegate implementation.
30 void DispatchEvent(const std::string& event_name, 25 bool DispatchEvent(const std::string& event_name,
lazyboy 2015/04/30 19:31:07 Are we using the returned value in this CL? (I did
Fady Samuel 2015/04/30 23:26:04 Done.
31 scoped_ptr<base::DictionaryValue> args, 26 scoped_ptr<base::DictionaryValue> args,
32 GuestViewBase* guest, 27 guestview::GuestViewBase* guest,
33 int instance_id) override; 28 int instance_id) override;
34 bool IsGuestAvailableToContext(extensions::GuestViewBase* guest) override; 29 bool IsGuestAvailableToContext(guestview::GuestViewBase* guest) override;
35 bool IsOwnedByExtension(extensions::GuestViewBase* guest) override; 30 bool IsOwnedByExtension(guestview::GuestViewBase* guest) override;
36 void RegisterAdditionalGuestViewTypes() override; 31 void RegisterAdditionalGuestViewTypes() override;
37 32
38 private: 33 private:
39 content::BrowserContext* const context_; 34 content::BrowserContext* const context_;
40 }; 35 };
41 36
42 } // namespace extensions 37 } // namespace extensions
43 38
44 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MANAGER_DELEGATE_ H_ 39 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MANAGER_DELEGATE_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698