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_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_DELEGATE_H_
8 #include "base/macros.h"
10 namespace extensions
{
12 class ExtensionViewGuest
;
14 // Interface to handle communication between ExtensionViewGuest and
16 class ExtensionViewGuestDelegate
{
18 explicit ExtensionViewGuestDelegate(ExtensionViewGuest
* guest
);
19 virtual ~ExtensionViewGuestDelegate();
21 // Called from ExtensionViewGuest::DidInitialize().
22 virtual void DidInitialize() = 0;
24 ExtensionViewGuest
* extension_view_guest() const { return guest_
; }
27 ExtensionViewGuest
* const guest_
;
29 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGuestDelegate
);
32 } // namespace extensions
34 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_DELEGATE_H_