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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2522143002: ShapeDetection: split mojom into face and barcode interfaces (Closed)
Patch Set: Smart rebase to https://crrev.com/2527503003 (FaceDetectorOptions) Created 4 years 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 | « content/browser/DEPS ('k') | content/public/android/BUILD.gn » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 #include "device/vibration/vibration_manager_impl.h" 97 #include "device/vibration/vibration_manager_impl.h"
98 #include "device/wake_lock/wake_lock_service_context.h" 98 #include "device/wake_lock/wake_lock_service_context.h"
99 #include "media/base/media_switches.h" 99 #include "media/base/media_switches.h"
100 #include "media/media_features.h" 100 #include "media/media_features.h"
101 #include "media/mojo/interfaces/media_service.mojom.h" 101 #include "media/mojo/interfaces/media_service.mojom.h"
102 #include "media/mojo/interfaces/remoting.mojom.h" 102 #include "media/mojo/interfaces/remoting.mojom.h"
103 #include "mojo/public/cpp/bindings/associated_interface_ptr.h" 103 #include "mojo/public/cpp/bindings/associated_interface_ptr.h"
104 #include "mojo/public/cpp/bindings/strong_binding.h" 104 #include "mojo/public/cpp/bindings/strong_binding.h"
105 #include "services/service_manager/public/cpp/connector.h" 105 #include "services/service_manager/public/cpp/connector.h"
106 #include "services/service_manager/public/cpp/interface_provider.h" 106 #include "services/service_manager/public/cpp/interface_provider.h"
107 #include "third_party/WebKit/public/platform/modules/shapedetection/shapedetecti on.mojom.h" 107 #include "third_party/WebKit/public/platform/modules/shapedetection/facedetectio n.mojom.h"
108 #include "ui/accessibility/ax_tree.h" 108 #include "ui/accessibility/ax_tree.h"
109 #include "ui/accessibility/ax_tree_update.h" 109 #include "ui/accessibility/ax_tree_update.h"
110 #include "ui/gfx/geometry/quad_f.h" 110 #include "ui/gfx/geometry/quad_f.h"
111 #include "url/gurl.h" 111 #include "url/gurl.h"
112 112
113 #if defined(OS_ANDROID) 113 #if defined(OS_ANDROID)
114 #include "content/browser/android/app_web_message_port_message_filter.h" 114 #include "content/browser/android/app_web_message_port_message_filter.h"
115 #include "content/public/browser/android/java_interfaces.h" 115 #include "content/public/browser/android/java_interfaces.h"
116 #include "content/browser/media/android/media_player_renderer.h" 116 #include "content/browser/media/android/media_player_renderer.h"
117 #include "media/base/audio_renderer_sink.h" 117 #include "media/base/audio_renderer_sink.h"
(...skipping 2134 matching lines...) Expand 10 before | Expand all | Expand 10 after
2252 2252
2253 GetInterfaceRegistry()->AddInterface(base::Bind( 2253 GetInterfaceRegistry()->AddInterface(base::Bind(
2254 &PresentationServiceImpl::CreateMojoService, base::Unretained(this))); 2254 &PresentationServiceImpl::CreateMojoService, base::Unretained(this)));
2255 2255
2256 GetInterfaceRegistry()->AddInterface( 2256 GetInterfaceRegistry()->AddInterface(
2257 base::Bind(&MediaSessionServiceImpl::Create, base::Unretained(this))); 2257 base::Bind(&MediaSessionServiceImpl::Create, base::Unretained(this)));
2258 2258
2259 #if defined(OS_ANDROID) 2259 #if defined(OS_ANDROID)
2260 GetInterfaceRegistry()->AddInterface( 2260 GetInterfaceRegistry()->AddInterface(
2261 GetGlobalJavaInterfaces() 2261 GetGlobalJavaInterfaces()
2262 ->CreateInterfaceFactory<blink::mojom::ShapeDetection>()); 2262 ->CreateInterfaceFactory<blink::mojom::FaceDetection>());
2263 2263
2264 GetInterfaceRegistry()->AddInterface( 2264 GetInterfaceRegistry()->AddInterface(
2265 GetGlobalJavaInterfaces() 2265 GetGlobalJavaInterfaces()
2266 ->CreateInterfaceFactory<device::VibrationManager>()); 2266 ->CreateInterfaceFactory<device::VibrationManager>());
2267 2267
2268 if (base::FeatureList::IsEnabled(media::kAndroidMediaPlayerRenderer)) { 2268 if (base::FeatureList::IsEnabled(media::kAndroidMediaPlayerRenderer)) {
2269 // Creates a MojoRendererService, passing it a MediaPlayerRender. 2269 // Creates a MojoRendererService, passing it a MediaPlayerRender.
2270 GetInterfaceRegistry()->AddInterface<media::mojom::Renderer>(base::Bind( 2270 GetInterfaceRegistry()->AddInterface<media::mojom::Renderer>(base::Bind(
2271 &content::CreateMediaPlayerRenderer, base::Unretained(this))); 2271 &content::CreateMediaPlayerRenderer, base::Unretained(this)));
2272 } 2272 }
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
3338 // There is no pending NavigationEntry in these cases, so pass 0 as the 3338 // There is no pending NavigationEntry in these cases, so pass 0 as the
3339 // pending_nav_entry_id. If the previous handle was a prematurely aborted 3339 // pending_nav_entry_id. If the previous handle was a prematurely aborted
3340 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. 3340 // navigation loaded via LoadDataWithBaseURL, propagate the entry id.
3341 return NavigationHandleImpl::Create( 3341 return NavigationHandleImpl::Create(
3342 params.url, frame_tree_node_, is_renderer_initiated, 3342 params.url, frame_tree_node_, is_renderer_initiated,
3343 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(), 3343 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(),
3344 entry_id_for_data_nav, false); // started_from_context_menu 3344 entry_id_for_data_nav, false); // started_from_context_menu
3345 } 3345 }
3346 3346
3347 } // namespace content 3347 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/DEPS ('k') | content/public/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698