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

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

Issue 464533002: Move guest_view to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small changes are made in guest_view_manager_unittest.cc Created 6 years, 4 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
« no previous file with comments | « extensions/browser/DEPS ('k') | extensions/browser/guest_view/guest_view_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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_
OLDNEW
« no previous file with comments | « extensions/browser/DEPS ('k') | extensions/browser/guest_view/guest_view_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698