Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(581)

Side by Side Diff: chrome/browser/guest_view/guest_view.h

Issue 258373002: Towards moving guest management to chrome: Introduce GuestViewManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with ToT Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698