Chromium Code Reviews| 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_GUEST_VIEW_MANAGER_DELEGATE_H_ | |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_DELEGATE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace extensions { | |
| 11 class GuestViewBase; | |
| 12 } // namespace extensions | |
| 13 | |
| 14 namespace guestview { | |
| 15 | |
| 16 // A GuestViewManagerDelegate interface allows GuestViewManager to delegate | |
| 17 // responsibilities to other modules in chromium. Different builds of chromium | |
|
lazyboy
2015/04/22 15:16:29
Shortly, also describe what responsibilities they
Fady Samuel
2015/04/22 23:09:48
Done.
| |
| 18 // may use different GuestViewManagerDelegate implementations. | |
| 19 class GuestViewManagerDelegate { | |
| 20 public: | |
| 21 virtual ~GuestViewManagerDelegate() {} | |
|
lazyboy
2015/04/22 15:16:29
indent this file.
Fady Samuel
2015/04/22 23:09:48
Done.
| |
| 22 | |
| 23 // Indicates whether the provided |guest| can be used in the context it has | |
|
lazyboy
2015/04/22 15:16:29
nit: here and below, "the provided" is redundant s
Fady Samuel
2015/04/22 23:09:48
Done.
| |
| 24 // been created. | |
| 25 virtual bool IsGuestAvailableToContext(extensions::GuestViewBase* guest) = 0; | |
| 26 | |
| 27 // Indicates whether the provided |guest| is owned by an extension or Chrome | |
| 28 // App. | |
| 29 virtual bool IsOwnedByExtension(extensions::GuestViewBase* guest) = 0; | |
| 30 | |
| 31 // Registers additional GuestView types that the GuestViewManager can create. | |
|
lazyboy
2015/04/22 15:16:29
... GuestView types that our delegator (GuestViewM
Fady Samuel
2015/04/22 23:09:48
Done.
| |
| 32 virtual void RegisterAdditionalGuestViewTypes() = 0; | |
| 33 }; | |
| 34 | |
| 35 } // namespace guestview | |
| 36 | |
| 37 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_DELEGATE_H_ | |
| OLD | NEW |