| 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 #include "content/public/browser/render_frame_host.h" | 9 #include "content/public/browser/render_frame_host.h" |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void SetOpener(T* opener) { | 48 void SetOpener(T* opener) { |
| 49 GuestViewBase::SetOpener(opener); | 49 GuestViewBase::SetOpener(opener); |
| 50 } | 50 } |
| 51 | 51 |
| 52 // GuestViewBase implementation. | 52 // GuestViewBase implementation. |
| 53 virtual const char* GetViewType() const OVERRIDE { | 53 virtual const char* GetViewType() const OVERRIDE { |
| 54 return T::Type; | 54 return T::Type; |
| 55 } | 55 } |
| 56 | 56 |
| 57 protected: | 57 protected: |
| 58 GuestView(int guest_instance_id, | 58 explicit GuestView(int guest_instance_id) |
| 59 content::WebContents* guest_web_contents, | 59 : GuestViewBase(guest_instance_id) {} |
| 60 const std::string& embedder_extension_id) | |
| 61 : GuestViewBase(guest_instance_id, | |
| 62 guest_web_contents, | |
| 63 embedder_extension_id) {} | |
| 64 virtual ~GuestView() {} | 60 virtual ~GuestView() {} |
| 65 | 61 |
| 66 private: | 62 private: |
| 67 DISALLOW_COPY_AND_ASSIGN(GuestView); | 63 DISALLOW_COPY_AND_ASSIGN(GuestView); |
| 68 }; | 64 }; |
| 69 | 65 |
| 70 #endif // CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ | 66 #endif // CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ |
| OLD | NEW |