| 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 CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ |
| 6 #define CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "chrome/browser/guest_view/guest_view_base.h" | |
| 10 #include "content/public/browser/render_frame_host.h" | 9 #include "content/public/browser/render_frame_host.h" |
| 10 #include "extensions/browser/guest_view/guest_view_base.h" |
| 11 |
| 12 namespace extensions { |
| 11 | 13 |
| 12 // A GuestView is the templated base class for out-of-process frames in the | 14 // A GuestView is the templated base class for out-of-process frames in the |
| 13 // chrome layer. GuestView is templated on its derived type to allow for type- | 15 // chrome layer. GuestView is templated on its derived type to allow for type- |
| 14 // safe access. See GuestViewBase for more information. | 16 // safe access. See GuestViewBase for more information. |
| 15 template <typename T> | 17 template <typename T> |
| 16 class GuestView : public GuestViewBase { | 18 class GuestView : public GuestViewBase { |
| 17 public: | 19 public: |
| 18 static void Register() { | 20 static void Register() { |
| 19 GuestViewBase::RegisterGuestViewType(T::Type, base::Bind(&T::Create)); | 21 GuestViewBase::RegisterGuestViewType(T::Type, base::Bind(&T::Create)); |
| 20 } | 22 } |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 protected: | 64 protected: |
| 63 GuestView(content::BrowserContext* browser_context, | 65 GuestView(content::BrowserContext* browser_context, |
| 64 int guest_instance_id) | 66 int guest_instance_id) |
| 65 : GuestViewBase(browser_context, guest_instance_id) {} | 67 : GuestViewBase(browser_context, guest_instance_id) {} |
| 66 virtual ~GuestView() {} | 68 virtual ~GuestView() {} |
| 67 | 69 |
| 68 private: | 70 private: |
| 69 DISALLOW_COPY_AND_ASSIGN(GuestView); | 71 DISALLOW_COPY_AND_ASSIGN(GuestView); |
| 70 }; | 72 }; |
| 71 | 73 |
| 72 #endif // CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ | 74 } // namespace extensions |
| 75 |
| 76 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ |
| OLD | NEW |