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

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

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 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues t.h" 5 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues t.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "components/guest_view/common/guest_view_constants.h"
8 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
9 #include "content/public/browser/host_zoom_map.h" 10 #include "content/public/browser/host_zoom_map.h"
10 #include "content/public/browser/render_process_host.h" 11 #include "content/public/browser/render_process_host.h"
11 #include "content/public/browser/stream_handle.h" 12 #include "content/public/browser/stream_handle.h"
12 #include "content/public/browser/stream_info.h" 13 #include "content/public/browser/stream_info.h"
13 #include "content/public/common/service_registry.h" 14 #include "content/public/common/service_registry.h"
14 #include "content/public/common/url_constants.h" 15 #include "content/public/common/url_constants.h"
15 #include "extensions/browser/api/extensions_api_client.h" 16 #include "extensions/browser/api/extensions_api_client.h"
16 #include "extensions/browser/api/mime_handler_private/mime_handler_private.h" 17 #include "extensions/browser/api/mime_handler_private/mime_handler_private.h"
17 #include "extensions/browser/extension_registry.h" 18 #include "extensions/browser/extension_registry.h"
18 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_stream_ma nager.h" 19 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_stream_ma nager.h"
19 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_cons tants.h" 20 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_cons tants.h"
20 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues t_delegate.h" 21 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues t_delegate.h"
21 #include "extensions/browser/process_manager.h" 22 #include "extensions/browser/process_manager.h"
22 #include "extensions/common/constants.h" 23 #include "extensions/common/constants.h"
23 #include "extensions/common/extension_messages.h" 24 #include "extensions/common/extension_messages.h"
24 #include "extensions/common/guest_view/extensions_guest_view_messages.h" 25 #include "extensions/common/guest_view/extensions_guest_view_messages.h"
25 #include "extensions/common/guest_view/guest_view_constants.h"
26 #include "extensions/strings/grit/extensions_strings.h" 26 #include "extensions/strings/grit/extensions_strings.h"
27 #include "ipc/ipc_message_macros.h" 27 #include "ipc/ipc_message_macros.h"
28 #include "net/base/url_util.h" 28 #include "net/base/url_util.h"
29 #include "third_party/WebKit/public/web/WebInputEvent.h" 29 #include "third_party/WebKit/public/web/WebInputEvent.h"
30 30
31 using content::WebContents; 31 using content::WebContents;
32 using guestview::GuestViewBase;
32 33
33 namespace extensions { 34 namespace extensions {
34 35
35 StreamContainer::StreamContainer(scoped_ptr<content::StreamInfo> stream, 36 StreamContainer::StreamContainer(scoped_ptr<content::StreamInfo> stream,
36 int tab_id, 37 int tab_id,
37 bool embedded, 38 bool embedded,
38 const GURL& handler_url, 39 const GURL& handler_url,
39 const std::string& extension_id) 40 const std::string& extension_id)
40 : stream_(stream.Pass()), 41 : stream_(stream.Pass()),
41 embedded_(embedded), 42 embedded_(embedded),
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 268
268 void MimeHandlerViewGuest::OnRequest( 269 void MimeHandlerViewGuest::OnRequest(
269 const ExtensionHostMsg_Request_Params& params) { 270 const ExtensionHostMsg_Request_Params& params) {
270 if (extension_function_dispatcher_) { 271 if (extension_function_dispatcher_) {
271 extension_function_dispatcher_->Dispatch( 272 extension_function_dispatcher_->Dispatch(
272 params, web_contents()->GetRenderViewHost()); 273 params, web_contents()->GetRenderViewHost());
273 } 274 }
274 } 275 }
275 276
276 } // namespace extensions 277 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698