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

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

Issue 2488913003: Replacing allocate bitmap IPC messages with a new Mojo interface. (Closed)
Patch Set: Synced 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
78 private: 87 private:
79 MockRenderThread* const thread_; 88 MockRenderThread* const thread_;
80 }; 89 };
81 90
82 } // namespace 91 } // namespace
83 92
84 MockRenderThread::MockRenderThread() 93 MockRenderThread::MockRenderThread()
85 : routing_id_(0), 94 : routing_id_(0),
86 opener_id_(0), 95 opener_id_(0),
87 new_window_routing_id_(0), 96 new_window_routing_id_(0),
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 void MockRenderThread::OnCreateWindow( 334 void MockRenderThread::OnCreateWindow(
326 const mojom::CreateNewWindowParams& params, 335 const mojom::CreateNewWindowParams& params,
327 mojom::CreateNewWindowReply* reply) { 336 mojom::CreateNewWindowReply* reply) {
328 reply->route_id = new_window_routing_id_; 337 reply->route_id = new_window_routing_id_;
329 reply->main_frame_route_id = new_window_main_frame_routing_id_; 338 reply->main_frame_route_id = new_window_main_frame_routing_id_;
330 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_; 339 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_;
331 reply->cloned_session_storage_namespace_id = 0; 340 reply->cloned_session_storage_namespace_id = 0;
332 } 341 }
333 342
334 } // namespace content 343 } // 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