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_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_DELEGA
TE_H_ | |
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_DELEGA
TE_H_ | |
7 | |
8 #include "base/macros.h" | |
9 | |
10 namespace extensions { | |
11 | |
12 class ExtensionViewGuest; | |
13 | |
14 // Interface to handle communication between ExtensionViewGuest and | |
15 // the browser. | |
16 class ExtensionViewGuestDelegate { | |
17 public: | |
18 explicit ExtensionViewGuestDelegate(ExtensionViewGuest* guest); | |
19 virtual ~ExtensionViewGuestDelegate(); | |
20 | |
21 // Called from ExtensionViewGuest::DidInitialize(). | |
22 virtual void DidInitialize() = 0; | |
23 | |
24 ExtensionViewGuest* extension_view_guest() const { return guest_; } | |
25 | |
26 private: | |
27 ExtensionViewGuest* const guest_; | |
28 | |
29 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGuestDelegate); | |
30 }; | |
31 | |
32 } // namespace extensions | |
33 | |
34 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_DEL
EGATE_H_ | |
OLD | NEW |