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

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

Issue 1102173002: Move GuestView layer in browser to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test change to build Created 5 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 EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ 5 #ifndef COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ 6 #define COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_H_
7 7
8 #include "components/guest_view/browser/guest_view_base.h"
9 #include "components/guest_view/browser/guest_view_manager.h"
8 #include "content/public/browser/render_frame_host.h" 10 #include "content/public/browser/render_frame_host.h"
9 #include "extensions/browser/guest_view/guest_view_base.h"
10 #include "extensions/browser/guest_view/guest_view_manager.h"
11 11
12 namespace extensions { 12 namespace guestview {
lazyboy 2015/04/30 19:31:07 based on the directory, this should be "namespace
Fady Samuel 2015/04/30 23:26:04 Done.
13 13
14 // 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
15 // 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-
16 // safe access. See GuestViewBase for more information. 16 // safe access. See GuestViewBase for more information.
17 template <typename T> 17 template <typename T>
18 class GuestView : public GuestViewBase { 18 class GuestView : public GuestViewBase {
19 public: 19 public:
20 static T* From(int embedder_process_id, int guest_instance_id) { 20 static T* From(int embedder_process_id, int guest_instance_id) {
21 auto guest = GuestViewBase::From(embedder_process_id, guest_instance_id); 21 auto guest = GuestViewBase::From(embedder_process_id, guest_instance_id);
22 if (!guest) 22 if (!guest)
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 protected: 59 protected:
60 explicit GuestView(content::WebContents* owner_web_contents) 60 explicit GuestView(content::WebContents* owner_web_contents)
61 : GuestViewBase(owner_web_contents) {} 61 : GuestViewBase(owner_web_contents) {}
62 ~GuestView() override {} 62 ~GuestView() override {}
63 63
64 private: 64 private:
65 DISALLOW_COPY_AND_ASSIGN(GuestView); 65 DISALLOW_COPY_AND_ASSIGN(GuestView);
66 }; 66 };
67 67
68 } // namespace extensions 68 } // namespace guestview
69 69
70 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_H_ 70 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698