| 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 CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ |
| 6 #define CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ | 6 #define CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/guest_view/guest_view_base.h" | 8 #include "chrome/browser/guest_view/guest_view_base.h" |
| 9 | 9 |
| 10 template <typename T> | 10 template <typename T> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 return guest ? guest->As<T>() : NULL; | 23 return guest ? guest->As<T>() : NULL; |
| 24 } | 24 } |
| 25 | 25 |
| 26 // GuestViewBase implementation. | 26 // GuestViewBase implementation. |
| 27 virtual const char* GetViewType() const OVERRIDE { | 27 virtual const char* GetViewType() const OVERRIDE { |
| 28 return T::Type; | 28 return T::Type; |
| 29 } | 29 } |
| 30 | 30 |
| 31 protected: | 31 protected: |
| 32 GuestView(content::WebContents* guest_web_contents, | 32 GuestView(content::WebContents* guest_web_contents, |
| 33 const std::string& embedder_extension_id) | 33 const std::string& embedder_extension_id, |
| 34 : GuestViewBase(guest_web_contents, embedder_extension_id) {} | 34 const base::WeakPtr<GuestViewBase>& opener) |
| 35 : GuestViewBase(guest_web_contents, embedder_extension_id, opener) {} |
| 35 | 36 |
| 36 private: | 37 private: |
| 37 DISALLOW_COPY_AND_ASSIGN(GuestView); | 38 DISALLOW_COPY_AND_ASSIGN(GuestView); |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 #endif // CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ | 41 #endif // CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ |
| OLD | NEW |