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

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

Issue 2717213004: Move SharedBitmapManager implementation out of content/ (Closed)
Patch Set: rebase Created 3 years, 8 months 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/common/render_message_filter.mojom ('k') | content/renderer/BUILD.gn » ('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/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 thread_->OnCreateWidget(opener_id, popup_type, route_id); 70 thread_->OnCreateWidget(opener_id, popup_type, route_id);
71 return true; 71 return true;
72 } 72 }
73 73
74 void CreateFullscreenWidget( 74 void CreateFullscreenWidget(
75 int opener_id, 75 int opener_id,
76 const CreateFullscreenWidgetCallback& callback) override { 76 const CreateFullscreenWidgetCallback& callback) override {
77 NOTREACHED(); 77 NOTREACHED();
78 } 78 }
79 79
80 void AllocatedSharedBitmap(mojo::ScopedSharedBufferHandle buffer, 80 void GetSharedBitmapManager(
81 const cc::SharedBitmapId& id) override { 81 cc::mojom::SharedBitmapManagerAssociatedRequest request) override {
82 NOTREACHED(); 82 NOTREACHED();
83 } 83 }
84 84
85 void DeletedSharedBitmap(const cc::SharedBitmapId& id) override {
86 NOTREACHED();
87 }
88
89 private: 85 private:
90 MockRenderThread* const thread_; 86 MockRenderThread* const thread_;
91 }; 87 };
92 88
93 } // namespace 89 } // namespace
94 90
95 MockRenderThread::MockRenderThread() 91 MockRenderThread::MockRenderThread()
96 : routing_id_(0), 92 : routing_id_(0),
97 opener_id_(0), 93 opener_id_(0),
98 new_window_routing_id_(0), 94 new_window_routing_id_(0),
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 void MockRenderThread::OnCreateWindow( 341 void MockRenderThread::OnCreateWindow(
346 const mojom::CreateNewWindowParams& params, 342 const mojom::CreateNewWindowParams& params,
347 mojom::CreateNewWindowReply* reply) { 343 mojom::CreateNewWindowReply* reply) {
348 reply->route_id = new_window_routing_id_; 344 reply->route_id = new_window_routing_id_;
349 reply->main_frame_route_id = new_window_main_frame_routing_id_; 345 reply->main_frame_route_id = new_window_main_frame_routing_id_;
350 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_; 346 reply->main_frame_widget_route_id = new_window_main_frame_widget_routing_id_;
351 reply->cloned_session_storage_namespace_id = 0; 347 reply->cloned_session_storage_namespace_id = 0;
352 } 348 }
353 349
354 } // namespace content 350 } // namespace content
OLDNEW
« no previous file with comments | « content/common/render_message_filter.mojom ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698