OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_APP_VIEW_APP_VIEW_GUEST_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ |
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ |
7 | 7 |
8 #include "base/id_map.h" | 8 #include "base/id_map.h" |
| 9 #include "base/macros.h" |
9 #include "components/guest_view/browser/guest_view.h" | 10 #include "components/guest_view/browser/guest_view.h" |
10 #include "extensions/browser/guest_view/app_view/app_view_guest_delegate.h" | 11 #include "extensions/browser/guest_view/app_view/app_view_guest_delegate.h" |
11 | 12 |
12 namespace extensions { | 13 namespace extensions { |
13 class Extension; | 14 class Extension; |
14 class ExtensionHost; | 15 class ExtensionHost; |
15 | 16 |
16 // An AppViewGuest provides the browser-side implementation of <appview> API. | 17 // An AppViewGuest provides the browser-side implementation of <appview> API. |
17 // AppViewGuest is created on attachment. That is, when a guest WebContents is | 18 // AppViewGuest is created on attachment. That is, when a guest WebContents is |
18 // associated with a particular embedder WebContents. This happens on calls to | 19 // associated with a particular embedder WebContents. This happens on calls to |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // This is used to ensure pending tasks will not fire after this object is | 84 // This is used to ensure pending tasks will not fire after this object is |
84 // destroyed. | 85 // destroyed. |
85 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; | 86 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); | 88 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace extensions | 91 } // namespace extensions |
91 | 92 |
92 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ | 93 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ |
OLD | NEW |