OLD | NEW |
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/memory/ptr_util.h" |
8 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
9 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
10 #include "build/build_config.h" | 11 #include "build/build_config.h" |
11 #include "content/common/frame_messages.h" | 12 #include "content/common/frame_messages.h" |
12 #include "content/common/render_message_filter.mojom.h" | 13 #include "content/common/render_message_filter.mojom.h" |
13 #include "content/common/view_messages.h" | 14 #include "content/common/view_messages.h" |
14 #include "content/public/renderer/render_thread_observer.h" | 15 #include "content/public/renderer/render_thread_observer.h" |
15 #include "content/renderer/render_thread_impl.h" | 16 #include "content/renderer/render_thread_impl.h" |
16 #include "content/renderer/render_view_impl.h" | 17 #include "content/renderer/render_view_impl.h" |
17 #include "ipc/ipc_message_utils.h" | 18 #include "ipc/ipc_message_utils.h" |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 void MockRenderThread::OnCreateWindow( | 335 void MockRenderThread::OnCreateWindow( |
335 const mojom::CreateNewWindowParams& params, | 336 const mojom::CreateNewWindowParams& params, |
336 mojom::CreateNewWindowReply* reply) { | 337 mojom::CreateNewWindowReply* reply) { |
337 reply->route_id = new_window_routing_id_; | 338 reply->route_id = new_window_routing_id_; |
338 reply->main_frame_route_id = new_window_main_frame_routing_id_; | 339 reply->main_frame_route_id = new_window_main_frame_routing_id_; |
339 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_; | 340 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_; |
340 reply->cloned_session_storage_namespace_id = 0; | 341 reply->cloned_session_storage_namespace_id = 0; |
341 } | 342 } |
342 | 343 |
343 } // namespace content | 344 } // namespace content |
OLD | NEW |