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

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: Changes based on comment 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 (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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 } 212 }
213 213
214 bool MockRenderThread::ResolveProxy(const GURL& url, std::string* proxy_list) { 214 bool MockRenderThread::ResolveProxy(const GURL& url, std::string* proxy_list) {
215 return false; 215 return false;
216 } 216 }
217 217
218 base::WaitableEvent* MockRenderThread::GetShutdownEvent() { 218 base::WaitableEvent* MockRenderThread::GetShutdownEvent() {
219 return NULL; 219 return NULL;
220 } 220 }
221 221
222 int32_t MockRenderThread::GetClientId() {
223 return 1;
224 }
225
222 #if defined(OS_WIN) 226 #if defined(OS_WIN)
223 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { 227 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) {
224 } 228 }
225 229
226 void MockRenderThread::ReleaseCachedFonts() { 230 void MockRenderThread::ReleaseCachedFonts() {
227 } 231 }
228 232
229 #endif // OS_WIN 233 #endif // OS_WIN
230 234
231 ServiceManagerConnection* MockRenderThread::GetServiceManagerConnection() { 235 ServiceManagerConnection* MockRenderThread::GetServiceManagerConnection() {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 void MockRenderThread::OnCreateWindow( 310 void MockRenderThread::OnCreateWindow(
307 const mojom::CreateNewWindowParams& params, 311 const mojom::CreateNewWindowParams& params,
308 mojom::CreateNewWindowReply* reply) { 312 mojom::CreateNewWindowReply* reply) {
309 reply->route_id = new_window_routing_id_; 313 reply->route_id = new_window_routing_id_;
310 reply->main_frame_route_id = new_window_main_frame_routing_id_; 314 reply->main_frame_route_id = new_window_main_frame_routing_id_;
311 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_; 315 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_;
312 reply->cloned_session_storage_namespace_id = 0; 316 reply->cloned_session_storage_namespace_id = 0;
313 } 317 }
314 318
315 } // namespace content 319 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698