| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_GUEST_VIEW_CHROME_GUEST_VIEW_MANAGER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_GUEST_VIEW_CHROME_GUEST_VIEW_MANAGER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_GUEST_VIEW_CHROME_GUEST_VIEW_MANAGER_DELEGATE_H_ | 6 #define CHROME_BROWSER_GUEST_VIEW_CHROME_GUEST_VIEW_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "extensions/browser/guest_view/extensions_guest_view_manager_delegate.h
" | 9 #include "extensions/browser/guest_view/extensions_guest_view_manager_delegate.h
" |
| 9 | 10 |
| 10 namespace extensions { | 11 namespace extensions { |
| 11 | 12 |
| 12 // Defines a chrome-specific implementation of | 13 // Defines a chrome-specific implementation of |
| 13 // ExtensionsGuestViewManagerDelegate that knows about the concept of a task | 14 // ExtensionsGuestViewManagerDelegate that knows about the concept of a task |
| 14 // manager and the need for tagging the guest view WebContents by their | 15 // manager and the need for tagging the guest view WebContents by their |
| 15 // appropriate task manager tag. | 16 // appropriate task manager tag. |
| 16 class ChromeGuestViewManagerDelegate | 17 class ChromeGuestViewManagerDelegate |
| 17 : public ExtensionsGuestViewManagerDelegate { | 18 : public ExtensionsGuestViewManagerDelegate { |
| 18 public: | 19 public: |
| 19 explicit ChromeGuestViewManagerDelegate(content::BrowserContext* context); | 20 explicit ChromeGuestViewManagerDelegate(content::BrowserContext* context); |
| 20 ~ChromeGuestViewManagerDelegate() override; | 21 ~ChromeGuestViewManagerDelegate() override; |
| 21 | 22 |
| 22 // GuestViewManagerDelegate: | 23 // GuestViewManagerDelegate: |
| 23 void OnGuestAdded(content::WebContents* guest_web_contents) const override; | 24 void OnGuestAdded(content::WebContents* guest_web_contents) const override; |
| 24 | 25 |
| 25 private: | 26 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(ChromeGuestViewManagerDelegate); | 27 DISALLOW_COPY_AND_ASSIGN(ChromeGuestViewManagerDelegate); |
| 27 }; | 28 }; |
| 28 | 29 |
| 29 } // namespace extensions | 30 } // namespace extensions |
| 30 | 31 |
| 31 #endif // CHROME_BROWSER_GUEST_VIEW_CHROME_GUEST_VIEW_MANAGER_DELEGATE_H_ | 32 #endif // CHROME_BROWSER_GUEST_VIEW_CHROME_GUEST_VIEW_MANAGER_DELEGATE_H_ |
| OLD | NEW |