| OLD | NEW |
| 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 "content/shell/browser/layout_test/layout_test_content_browser_client.h
" | 5 #include "content/shell/browser/layout_test/layout_test_content_browser_client.h
" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "content/public/browser/browser_context.h" | 8 #include "content/public/browser/browser_context.h" |
| 9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
| 10 #include "content/public/browser/render_process_host.h" | 10 #include "content/public/browser/render_process_host.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 host->GetID(), | 67 host->GetID(), |
| 68 partition->GetDatabaseTracker(), | 68 partition->GetDatabaseTracker(), |
| 69 partition->GetQuotaManager(), | 69 partition->GetQuotaManager(), |
| 70 partition->GetURLRequestContext())); | 70 partition->GetURLRequestContext())); |
| 71 | 71 |
| 72 host->Send(new ShellViewMsg_SetWebKitSourceDir(GetWebKitRootDirFilePath())); | 72 host->Send(new ShellViewMsg_SetWebKitSourceDir(GetWebKitRootDirFilePath())); |
| 73 } | 73 } |
| 74 | 74 |
| 75 void LayoutTestContentBrowserClient::ExposeInterfacesToRenderer( | 75 void LayoutTestContentBrowserClient::ExposeInterfacesToRenderer( |
| 76 service_manager::BinderRegistry* registry, | 76 service_manager::BinderRegistry* registry, |
| 77 AssociatedInterfaceRegistry* associated_registry, |
| 77 RenderProcessHost* render_process_host) { | 78 RenderProcessHost* render_process_host) { |
| 78 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner = | 79 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner = |
| 79 content::BrowserThread::GetTaskRunnerForThread( | 80 content::BrowserThread::GetTaskRunnerForThread( |
| 80 content::BrowserThread::UI); | 81 content::BrowserThread::UI); |
| 81 registry->AddInterface( | 82 registry->AddInterface( |
| 82 base::Bind(&LayoutTestBluetoothFakeAdapterSetterImpl::Create), | 83 base::Bind(&LayoutTestBluetoothFakeAdapterSetterImpl::Create), |
| 83 ui_task_runner); | 84 ui_task_runner); |
| 84 | 85 |
| 85 registry->AddInterface(base::Bind(&bluetooth::FakeBluetooth::Create), | 86 registry->AddInterface(base::Bind(&bluetooth::FakeBluetooth::Create), |
| 86 ui_task_runner); | 87 ui_task_runner); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 // build up a large data set and issue many concurrent reads or writes. | 141 // build up a large data set and issue many concurrent reads or writes. |
| 141 callback.Run(storage::GetHardCodedSettings(1024 * 1024 * 1024)); | 142 callback.Run(storage::GetHardCodedSettings(1024 * 1024 * 1024)); |
| 142 } | 143 } |
| 143 | 144 |
| 144 PlatformNotificationService* | 145 PlatformNotificationService* |
| 145 LayoutTestContentBrowserClient::GetPlatformNotificationService() { | 146 LayoutTestContentBrowserClient::GetPlatformNotificationService() { |
| 146 return layout_test_notification_manager_.get(); | 147 return layout_test_notification_manager_.get(); |
| 147 } | 148 } |
| 148 | 149 |
| 149 } // namespace content | 150 } // namespace content |
| OLD | NEW |