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

Side by Side Diff: content/shell/browser/layout_test/layout_test_content_browser_client.cc

Issue 2643183002: Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. (Closed)
Patch Set: Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. Created 3 years, 8 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 "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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 host->GetID(), 66 host->GetID(),
67 partition->GetDatabaseTracker(), 67 partition->GetDatabaseTracker(),
68 partition->GetQuotaManager(), 68 partition->GetQuotaManager(),
69 partition->GetURLRequestContext())); 69 partition->GetURLRequestContext()));
70 70
71 host->Send(new ShellViewMsg_SetWebKitSourceDir(GetWebKitRootDirFilePath())); 71 host->Send(new ShellViewMsg_SetWebKitSourceDir(GetWebKitRootDirFilePath()));
72 } 72 }
73 73
74 void LayoutTestContentBrowserClient::ExposeInterfacesToRenderer( 74 void LayoutTestContentBrowserClient::ExposeInterfacesToRenderer(
75 service_manager::InterfaceRegistry* registry, 75 service_manager::InterfaceRegistry* registry,
76 AssociatedInterfaceRegistry* associated_registry,
76 RenderProcessHost* render_process_host) { 77 RenderProcessHost* render_process_host) {
77 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner = 78 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner =
78 content::BrowserThread::GetTaskRunnerForThread( 79 content::BrowserThread::GetTaskRunnerForThread(
79 content::BrowserThread::UI); 80 content::BrowserThread::UI);
80 registry->AddInterface( 81 registry->AddInterface(
81 base::Bind(&LayoutTestBluetoothFakeAdapterSetterImpl::Create), 82 base::Bind(&LayoutTestBluetoothFakeAdapterSetterImpl::Create),
82 ui_task_runner); 83 ui_task_runner);
83 } 84 }
84 85
85 void LayoutTestContentBrowserClient::OverrideWebkitPrefs( 86 void LayoutTestContentBrowserClient::OverrideWebkitPrefs(
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // build up a large data set and issue many concurrent reads or writes. 137 // build up a large data set and issue many concurrent reads or writes.
137 callback.Run(storage::GetHardCodedSettings(1024 * 1024 * 1024)); 138 callback.Run(storage::GetHardCodedSettings(1024 * 1024 * 1024));
138 } 139 }
139 140
140 PlatformNotificationService* 141 PlatformNotificationService*
141 LayoutTestContentBrowserClient::GetPlatformNotificationService() { 142 LayoutTestContentBrowserClient::GetPlatformNotificationService() {
142 return layout_test_notification_manager_.get(); 143 return layout_test_notification_manager_.get();
143 } 144 }
144 145
145 } // namespace content 146 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698