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

Side by Side Diff: content/public/test/mock_render_thread.cc

Issue 2447143003: Use kRenderClientId command line flag when starting a render process (Closed)
Patch Set: Added RenderThreadImpl::client_id_ to store client ID and avoid repetitive string parsing 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
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | content/renderer/render_thread_impl.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "content/public/test/mock_render_thread.h" 5 #include "content/public/test/mock_render_thread.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 } 228 }
229 229
230 bool MockRenderThread::ResolveProxy(const GURL& url, std::string* proxy_list) { 230 bool MockRenderThread::ResolveProxy(const GURL& url, std::string* proxy_list) {
231 return false; 231 return false;
232 } 232 }
233 233
234 base::WaitableEvent* MockRenderThread::GetShutdownEvent() { 234 base::WaitableEvent* MockRenderThread::GetShutdownEvent() {
235 return NULL; 235 return NULL;
236 } 236 }
237 237
238 int32_t MockRenderThread::GetClientId() {
239 return 1;
240 }
241
238 #if defined(OS_WIN) 242 #if defined(OS_WIN)
239 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { 243 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) {
240 } 244 }
241 245
242 void MockRenderThread::ReleaseCachedFonts() { 246 void MockRenderThread::ReleaseCachedFonts() {
243 } 247 }
244 248
245 #endif // OS_WIN 249 #endif // OS_WIN
246 250
247 ServiceManagerConnection* MockRenderThread::GetServiceManagerConnection() { 251 ServiceManagerConnection* MockRenderThread::GetServiceManagerConnection() {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 void MockRenderThread::OnCreateWindow( 325 void MockRenderThread::OnCreateWindow(
322 const mojom::CreateNewWindowParams& params, 326 const mojom::CreateNewWindowParams& params,
323 mojom::CreateNewWindowReply* reply) { 327 mojom::CreateNewWindowReply* reply) {
324 reply->route_id = new_window_routing_id_; 328 reply->route_id = new_window_routing_id_;
325 reply->main_frame_route_id = new_window_main_frame_routing_id_; 329 reply->main_frame_route_id = new_window_main_frame_routing_id_;
326 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_; 330 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_;
327 reply->cloned_session_storage_namespace_id = 0; 331 reply->cloned_session_storage_namespace_id = 0;
328 } 332 }
329 333
330 } // namespace content 334 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698