OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MANAGER_DELEGATE_H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MANAGER_DELEGATE_H_ |
| 7 |
| 8 #include "extensions/browser/guest_view/guest_view_manager_delegate.h" |
| 9 |
| 10 namespace content { |
| 11 class BrowserContext; |
| 12 } // namespace content |
| 13 |
| 14 namespace extensions { |
| 15 class GuestViewBase; |
| 16 class GuestViewManager; |
| 17 } // namespace extensions |
| 18 |
| 19 namespace extensions { |
| 20 |
| 21 // ExtensionsGuestViewManagerDelegate implements GuestViewManager functionality |
| 22 // specific to Chromium builds that include the extensions module. |
| 23 class ExtensionsGuestViewManagerDelegate |
| 24 : public guestview::GuestViewManagerDelegate { |
| 25 public: |
| 26 explicit ExtensionsGuestViewManagerDelegate(content::BrowserContext* context); |
| 27 ~ExtensionsGuestViewManagerDelegate() override; |
| 28 |
| 29 // GuestViewManagerDelegate implementation. |
| 30 void DispatchEvent(const std::string& event_name, |
| 31 scoped_ptr<base::DictionaryValue> args, |
| 32 GuestViewBase* guest, |
| 33 int instance_id) override; |
| 34 bool IsGuestAvailableToContext(extensions::GuestViewBase* guest) override; |
| 35 bool IsOwnedByExtension(extensions::GuestViewBase* guest) override; |
| 36 void RegisterAdditionalGuestViewTypes() override; |
| 37 |
| 38 private: |
| 39 content::BrowserContext* const context_; |
| 40 }; |
| 41 |
| 42 } // namespace extensions |
| 43 |
| 44 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MANAGER_DELEGATE_
H_ |
OLD | NEW |