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

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: Created 4 years, 1 month 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 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 2127 matching lines...) Expand 10 before | Expand all | Expand 10 after
2245 2245
2246 GetInterfaceRegistry()->AddInterface(base::Bind( 2246 GetInterfaceRegistry()->AddInterface(base::Bind(
2247 &PresentationServiceImpl::CreateMojoService, base::Unretained(this))); 2247 &PresentationServiceImpl::CreateMojoService, base::Unretained(this)));
2248 2248
2249 GetInterfaceRegistry()->AddInterface( 2249 GetInterfaceRegistry()->AddInterface(
2250 base::Bind(&MediaSessionServiceImpl::Create, base::Unretained(this))); 2250 base::Bind(&MediaSessionServiceImpl::Create, base::Unretained(this)));
2251 2251
2252 #if defined(OS_ANDROID) 2252 #if defined(OS_ANDROID)
2253 GetInterfaceRegistry()->AddInterface( 2253 GetInterfaceRegistry()->AddInterface(
2254 GetGlobalJavaInterfaces() 2254 GetGlobalJavaInterfaces()
2255 ->CreateInterfaceFactory<blink::mojom::ShapeDetection>()); 2255 ->CreateInterfaceFactory<blink::mojom::FaceDetection>());
2256 2256
2257 GetInterfaceRegistry()->AddInterface( 2257 GetInterfaceRegistry()->AddInterface(
2258 GetGlobalJavaInterfaces() 2258 GetGlobalJavaInterfaces()
2259 ->CreateInterfaceFactory<device::VibrationManager>()); 2259 ->CreateInterfaceFactory<device::VibrationManager>());
2260 2260
2261 if (base::FeatureList::IsEnabled(media::kAndroidMediaPlayerRenderer)) { 2261 if (base::FeatureList::IsEnabled(media::kAndroidMediaPlayerRenderer)) {
2262 // Creates a MojoRendererService, passing it a MediaPlayerRender. 2262 // Creates a MojoRendererService, passing it a MediaPlayerRender.
2263 GetInterfaceRegistry()->AddInterface<media::mojom::Renderer>(base::Bind( 2263 GetInterfaceRegistry()->AddInterface<media::mojom::Renderer>(base::Bind(
2264 &content::CreateMediaPlayerRenderer, base::Unretained(this))); 2264 &content::CreateMediaPlayerRenderer, base::Unretained(this)));
2265 } 2265 }
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
3331 // There is no pending NavigationEntry in these cases, so pass 0 as the 3331 // There is no pending NavigationEntry in these cases, so pass 0 as the
3332 // pending_nav_entry_id. If the previous handle was a prematurely aborted 3332 // pending_nav_entry_id. If the previous handle was a prematurely aborted
3333 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. 3333 // navigation loaded via LoadDataWithBaseURL, propagate the entry id.
3334 return NavigationHandleImpl::Create( 3334 return NavigationHandleImpl::Create(
3335 params.url, frame_tree_node_, is_renderer_initiated, 3335 params.url, frame_tree_node_, is_renderer_initiated,
3336 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(), 3336 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(),
3337 entry_id_for_data_nav, false); // started_from_context_menu 3337 entry_id_for_data_nav, false); // started_from_context_menu
3338 } 3338 }
3339 3339
3340 } // namespace content 3340 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698