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

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

Issue 1102173002: Move GuestView layer in browser to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Mac Build + GN Test builds 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_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_ H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_ H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_ H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_ H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "components/guest_view/browser/guest_view.h"
9 #include "extensions/browser/extension_function_dispatcher.h" 10 #include "extensions/browser/extension_function_dispatcher.h"
10 #include "extensions/browser/guest_view/guest_view.h"
11 11
12 namespace content { 12 namespace content {
13 class WebContents; 13 class WebContents;
14 struct ContextMenuParams; 14 struct ContextMenuParams;
15 struct StreamInfo; 15 struct StreamInfo;
16 } // namespace content 16 } // namespace content
17 17
18 namespace extensions { 18 namespace extensions {
19 class MimeHandlerViewGuestDelegate; 19 class MimeHandlerViewGuestDelegate;
20 20
(...skipping 22 matching lines...) Expand all
43 private: 43 private:
44 const scoped_ptr<content::StreamInfo> stream_; 44 const scoped_ptr<content::StreamInfo> stream_;
45 const bool embedded_; 45 const bool embedded_;
46 const int tab_id_; 46 const int tab_id_;
47 const GURL handler_url_; 47 const GURL handler_url_;
48 const std::string extension_id_; 48 const std::string extension_id_;
49 49
50 base::WeakPtrFactory<StreamContainer> weak_factory_; 50 base::WeakPtrFactory<StreamContainer> weak_factory_;
51 }; 51 };
52 52
53 class MimeHandlerViewGuest : public GuestView<MimeHandlerViewGuest>, 53 class MimeHandlerViewGuest : public guestview::GuestView<MimeHandlerViewGuest>,
54 public ExtensionFunctionDispatcher::Delegate { 54 public ExtensionFunctionDispatcher::Delegate {
55 public: 55 public:
56 static GuestViewBase* Create(content::WebContents* owner_web_contents); 56 static guestview::GuestViewBase* Create(
57 content::WebContents* owner_web_contents);
57 58
58 static const char Type[]; 59 static const char Type[];
59 60
60 // ExtensionFunctionDispatcher::Delegate implementation. 61 // ExtensionFunctionDispatcher::Delegate implementation.
61 WindowController* GetExtensionWindowController() const override; 62 WindowController* GetExtensionWindowController() const override;
62 content::WebContents* GetAssociatedWebContents() const override; 63 content::WebContents* GetAssociatedWebContents() const override;
63 64
64 // GuestViewBase implementation. 65 // GuestViewBase implementation.
65 const char* GetAPINamespace() const override; 66 const char* GetAPINamespace() const override;
66 int GetTaskPrefix() const override; 67 int GetTaskPrefix() const override;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; 111 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_;
111 scoped_ptr<StreamContainer> stream_; 112 scoped_ptr<StreamContainer> stream_;
112 std::string view_id_; 113 std::string view_id_;
113 114
114 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); 115 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest);
115 }; 116 };
116 117
117 } // namespace extensions 118 } // namespace extensions
118 119
119 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE ST_H_ 120 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE ST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698