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

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

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. Created 5 years, 7 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
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 "chrome/renderer/chrome_mock_render_thread.h" 5 #include "chrome/renderer/chrome_mock_render_thread.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 #if defined(ENABLE_EXTENSIONS) 9 #if defined(ENABLE_EXTENSIONS)
10 #include "extensions/common/extension_messages.h" 10 #include "extensions/common/extension_messages.h"
11 #endif 11 #endif
12 12
13 ChromeMockRenderThread::ChromeMockRenderThread() { 13 ChromeMockRenderThread::ChromeMockRenderThread() {
14 } 14 }
15 15
16 ChromeMockRenderThread::~ChromeMockRenderThread() { 16 ChromeMockRenderThread::~ChromeMockRenderThread() {
17 } 17 }
18 18
19 scoped_refptr<base::MessageLoopProxy> 19 scoped_refptr<base::SingleThreadTaskRunner>
20 ChromeMockRenderThread::GetIOMessageLoopProxy() { 20 ChromeMockRenderThread::GetIOMessageLoopProxy() {
21 return io_message_loop_proxy_; 21 return io_message_loop_proxy_;
22 } 22 }
23 23
24 void ChromeMockRenderThread::set_io_message_loop_proxy( 24 void ChromeMockRenderThread::set_io_message_loop_proxy(
25 const scoped_refptr<base::MessageLoopProxy>& proxy) { 25 const scoped_refptr<base::MessageLoopProxy>& proxy) {
26 io_message_loop_proxy_ = proxy; 26 io_message_loop_proxy_ = proxy;
27 } 27 }
28 28
29 bool ChromeMockRenderThread::OnMessageReceived(const IPC::Message& msg) { 29 bool ChromeMockRenderThread::OnMessageReceived(const IPC::Message& msg) {
(...skipping 17 matching lines...) Expand all
47 #if defined(ENABLE_EXTENSIONS) 47 #if defined(ENABLE_EXTENSIONS)
48 void ChromeMockRenderThread::OnOpenChannelToExtension( 48 void ChromeMockRenderThread::OnOpenChannelToExtension(
49 int routing_id, 49 int routing_id,
50 const ExtensionMsg_ExternalConnectionInfo& info, 50 const ExtensionMsg_ExternalConnectionInfo& info,
51 const std::string& channel_name, 51 const std::string& channel_name,
52 bool include_tls_channel_id, 52 bool include_tls_channel_id,
53 int* port_id) { 53 int* port_id) {
54 *port_id = 0; 54 *port_id = 0;
55 } 55 }
56 #endif 56 #endif
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_mock_render_thread.h ('k') | components/nacl/renderer/pnacl_translation_resource_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698