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

Side by Side Diff: chrome/renderer/mock_render_thread.cc

Issue 3263007: Reland r57788 - Expose Extension Bindings to Component Applications (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: don't hide gallery url in omnibar Created 10 years, 3 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 | « chrome/renderer/mock_render_thread.h ('k') | chrome/renderer/render_thread.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/renderer/mock_render_thread.h" 5 #include "chrome/renderer/mock_render_thread.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
11 #include "chrome/common/render_messages.h" 11 #include "chrome/common/render_messages.h"
12 #include "chrome/common/render_messages_params.h" 12 #include "chrome/common/render_messages_params.h"
13 #include "chrome/common/url_constants.h"
13 #include "ipc/ipc_message_utils.h" 14 #include "ipc/ipc_message_utils.h"
14 #include "ipc/ipc_sync_message.h" 15 #include "ipc/ipc_sync_message.h"
15 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
16 17
17 MockRenderThread::MockRenderThread() 18 MockRenderThread::MockRenderThread()
18 : routing_id_(0), 19 : routing_id_(0),
19 opener_id_(0), 20 opener_id_(0),
20 widget_(NULL), 21 widget_(NULL),
21 reply_deserializer_(NULL), 22 reply_deserializer_(NULL),
22 printer_(new MockPrinter), 23 printer_(new MockPrinter),
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 void MockRenderThread::OnDidGetPrintedPagesCount(int cookie, int number_pages) { 196 void MockRenderThread::OnDidGetPrintedPagesCount(int cookie, int number_pages) {
196 if (printer_.get()) 197 if (printer_.get())
197 printer_->SetPrintedPagesCount(cookie, number_pages); 198 printer_->SetPrintedPagesCount(cookie, number_pages);
198 } 199 }
199 200
200 void MockRenderThread::OnDidPrintPage( 201 void MockRenderThread::OnDidPrintPage(
201 const ViewHostMsg_DidPrintPage_Params& params) { 202 const ViewHostMsg_DidPrintPage_Params& params) {
202 if (printer_.get()) 203 if (printer_.get())
203 printer_->PrintPage(params); 204 printer_->PrintPage(params);
204 } 205 }
OLDNEW
« no previous file with comments | « chrome/renderer/mock_render_thread.h ('k') | chrome/renderer/render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698