Update broken references to image assets
[chromium-blink-merge.git] / extensions / browser / guest_view / extensions_guest_view_manager_delegate.h
blob8a2d649cf732929d016e27dc41139a34b4c71397
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.
5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MANAGER_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MANAGER_DELEGATE_H_
8 #include "components/guest_view/browser/guest_view_manager_delegate.h"
10 namespace content {
11 class BrowserContext;
12 } // namespace content
14 namespace extensions {
16 // ExtensionsGuestViewManagerDelegate implements GuestViewManager functionality
17 // specific to Chromium builds that include the extensions module.
18 class ExtensionsGuestViewManagerDelegate
19 : public guest_view::GuestViewManagerDelegate {
20 public:
21 explicit ExtensionsGuestViewManagerDelegate(content::BrowserContext* context);
22 ~ExtensionsGuestViewManagerDelegate() override;
24 // GuestViewManagerDelegate implementation.
25 void DispatchEvent(const std::string& event_name,
26 scoped_ptr<base::DictionaryValue> args,
27 guest_view::GuestViewBase* guest,
28 int instance_id) override;
29 bool IsGuestAvailableToContext(guest_view::GuestViewBase* guest) override;
30 bool IsOwnedByExtension(guest_view::GuestViewBase* guest) override;
31 void RegisterAdditionalGuestViewTypes() override;
33 private:
34 content::BrowserContext* const context_;
37 } // namespace extensions
39 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_MANAGER_DELEGATE_H_