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

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

Issue 2552913003: Revert of Replacing allocate bitmap IPC messages with a new Mojo interface. (Closed)
Patch Set: Created 4 years 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 thread_->OnCreateWidget(opener_id, popup_type, route_id); 68 thread_->OnCreateWidget(opener_id, popup_type, route_id);
69 return true; 69 return true;
70 } 70 }
71 71
72 void CreateFullscreenWidget( 72 void CreateFullscreenWidget(
73 int opener_id, 73 int opener_id,
74 const CreateFullscreenWidgetCallback& callback) override { 74 const CreateFullscreenWidgetCallback& callback) override {
75 NOTREACHED(); 75 NOTREACHED();
76 } 76 }
77 77
78 void AllocatedSharedBitmap(mojo::ScopedSharedBufferHandle buffer,
79 const cc::SharedBitmapId& id) override {
80 NOTREACHED();
81 }
82
83 void DeletedSharedBitmap(const cc::SharedBitmapId& id) override {
84 NOTREACHED();
85 }
86
87 private: 78 private:
88 MockRenderThread* const thread_; 79 MockRenderThread* const thread_;
89 }; 80 };
90 81
91 } // namespace 82 } // namespace
92 83
93 MockRenderThread::MockRenderThread() 84 MockRenderThread::MockRenderThread()
94 : routing_id_(0), 85 : routing_id_(0),
95 opener_id_(0), 86 opener_id_(0),
96 new_window_routing_id_(0), 87 new_window_routing_id_(0),
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 void MockRenderThread::OnCreateWindow( 325 void MockRenderThread::OnCreateWindow(
335 const mojom::CreateNewWindowParams& params, 326 const mojom::CreateNewWindowParams& params,
336 mojom::CreateNewWindowReply* reply) { 327 mojom::CreateNewWindowReply* reply) {
337 reply->route_id = new_window_routing_id_; 328 reply->route_id = new_window_routing_id_;
338 reply->main_frame_route_id = new_window_main_frame_routing_id_; 329 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_; 330 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_;
340 reply->cloned_session_storage_namespace_id = 0; 331 reply->cloned_session_storage_namespace_id = 0;
341 } 332 }
342 333
343 } // namespace content 334 } // namespace content
OLDNEW
« no previous file with comments | « content/common/render_message_filter.mojom ('k') | content/renderer/pepper/pepper_compositor_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698