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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1586563009: IsNativeAppInstalled Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « components/installedapp/installedapp.gyp ('k') | content/content.gyp » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 21 matching lines...) Expand all
32 #include "base/stl_util.h" 32 #include "base/stl_util.h"
33 #include "base/strings/string_number_conversions.h" 33 #include "base/strings/string_number_conversions.h"
34 #include "base/supports_user_data.h" 34 #include "base/supports_user_data.h"
35 #include "base/sys_info.h" 35 #include "base/sys_info.h"
36 #include "base/threading/thread.h" 36 #include "base/threading/thread.h"
37 #include "base/threading/thread_restrictions.h" 37 #include "base/threading/thread_restrictions.h"
38 #include "base/trace_event/trace_event.h" 38 #include "base/trace_event/trace_event.h"
39 #include "base/tracked_objects.h" 39 #include "base/tracked_objects.h"
40 #include "build/build_config.h" 40 #include "build/build_config.h"
41 #include "cc/base/switches.h" 41 #include "cc/base/switches.h"
42 #include "components/installedapp/installed_app_provider_impl.h"
42 #include "components/scheduler/common/scheduler_switches.h" 43 #include "components/scheduler/common/scheduler_switches.h"
43 #include "components/tracing/tracing_switches.h" 44 #include "components/tracing/tracing_switches.h"
44 #include "content/browser/appcache/appcache_dispatcher_host.h" 45 #include "content/browser/appcache/appcache_dispatcher_host.h"
45 #include "content/browser/appcache/chrome_appcache_service.h" 46 #include "content/browser/appcache/chrome_appcache_service.h"
46 #include "content/browser/background_sync/background_sync_service_impl.h" 47 #include "content/browser/background_sync/background_sync_service_impl.h"
47 #include "content/browser/bad_message.h" 48 #include "content/browser/bad_message.h"
48 #include "content/browser/bluetooth/bluetooth_dispatcher_host.h" 49 #include "content/browser/bluetooth/bluetooth_dispatcher_host.h"
49 #include "content/browser/browser_child_process_host_impl.h" 50 #include "content/browser/browser_child_process_host_impl.h"
50 #include "content/browser/browser_main.h" 51 #include "content/browser/browser_main.h"
51 #include "content/browser/browser_main_loop.h" 52 #include "content/browser/browser_main_loop.h"
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 1063
1063 void RenderProcessHostImpl::RegisterMojoServices() { 1064 void RenderProcessHostImpl::RegisterMojoServices() {
1064 #if !defined(OS_ANDROID) 1065 #if !defined(OS_ANDROID)
1065 mojo_application_host_->service_registry()->AddService( 1066 mojo_application_host_->service_registry()->AddService(
1066 base::Bind(&device::BatteryMonitorImpl::Create)); 1067 base::Bind(&device::BatteryMonitorImpl::Create));
1067 1068
1068 mojo_application_host_->service_registry()->AddService( 1069 mojo_application_host_->service_registry()->AddService(
1069 base::Bind(&device::VibrationManagerImpl::Create)); 1070 base::Bind(&device::VibrationManagerImpl::Create));
1070 #endif 1071 #endif
1071 1072
1073 #if !defined(OS_ANDROID)
1074 mojo_application_host_->service_registry()->AddService(
1075 base::Bind(&device::InstalledAppProviderImpl::Create));
1076 #endif
1077
1072 mojo_application_host_->service_registry()->AddService( 1078 mojo_application_host_->service_registry()->AddService(
1073 base::Bind(&PermissionServiceContext::CreateService, 1079 base::Bind(&PermissionServiceContext::CreateService,
1074 base::Unretained(permission_service_context_.get()))); 1080 base::Unretained(permission_service_context_.get())));
1075 1081
1076 mojo_application_host_->service_registry()->AddService(base::Bind( 1082 mojo_application_host_->service_registry()->AddService(base::Bind(
1077 &BackgroundSyncContextImpl::CreateService, 1083 &BackgroundSyncContextImpl::CreateService,
1078 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); 1084 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext())));
1079 1085
1080 mojo_application_host_->service_registry()->AddService(base::Bind( 1086 mojo_application_host_->service_registry()->AddService(base::Bind(
1081 &content::ServicePortServiceImpl::Create, 1087 &content::ServicePortServiceImpl::Create,
(...skipping 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after
2796 void RenderProcessHostImpl::GetAudioOutputControllers( 2802 void RenderProcessHostImpl::GetAudioOutputControllers(
2797 const GetAudioOutputControllersCallback& callback) const { 2803 const GetAudioOutputControllersCallback& callback) const {
2798 audio_renderer_host()->GetOutputControllers(callback); 2804 audio_renderer_host()->GetOutputControllers(callback);
2799 } 2805 }
2800 2806
2801 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2807 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2802 return bluetooth_dispatcher_host_.get(); 2808 return bluetooth_dispatcher_host_.get();
2803 } 2809 }
2804 2810
2805 } // namespace content 2811 } // namespace content
OLDNEW
« no previous file with comments | « components/installedapp/installedapp.gyp ('k') | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698