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

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

Issue 16092013: Use base::MessageLoop in more files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again, sigh Created 7 years, 6 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 | Annotate | Revision Log
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/process_util.h" 7 #include "base/process_util.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "content/common/view_messages.h" 9 #include "content/common/view_messages.h"
10 #include "ipc/ipc_message_utils.h" 10 #include "ipc/ipc_message_utils.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // messages. 49 // messages.
50 reply_deserializer_.reset( 50 reply_deserializer_.reset(
51 static_cast<IPC::SyncMessage*>(msg)->GetReplyDeserializer()); 51 static_cast<IPC::SyncMessage*>(msg)->GetReplyDeserializer());
52 } 52 }
53 OnMessageReceived(*msg); 53 OnMessageReceived(*msg);
54 } 54 }
55 delete msg; 55 delete msg;
56 return true; 56 return true;
57 } 57 }
58 58
59 MessageLoop* MockRenderThread::GetMessageLoop() { 59 base::MessageLoop* MockRenderThread::GetMessageLoop() {
60 return NULL; 60 return NULL;
61 } 61 }
62 62
63 IPC::SyncChannel* MockRenderThread::GetChannel() { 63 IPC::SyncChannel* MockRenderThread::GetChannel() {
64 return NULL; 64 return NULL;
65 } 65 }
66 66
67 std::string MockRenderThread::GetLocale() { 67 std::string MockRenderThread::GetLocale() {
68 return "en-US"; 68 return "en-US";
69 } 69 }
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 void MockRenderThread::OnDuplicateSection( 233 void MockRenderThread::OnDuplicateSection(
234 base::SharedMemoryHandle renderer_handle, 234 base::SharedMemoryHandle renderer_handle,
235 base::SharedMemoryHandle* browser_handle) { 235 base::SharedMemoryHandle* browser_handle) {
236 // We don't have to duplicate the input handles since RenderViewTest does not 236 // We don't have to duplicate the input handles since RenderViewTest does not
237 // separate a browser process from a renderer process. 237 // separate a browser process from a renderer process.
238 *browser_handle = renderer_handle; 238 *browser_handle = renderer_handle;
239 } 239 }
240 #endif // defined(OS_WIN) 240 #endif // defined(OS_WIN)
241 241
242 } // namespace content 242 } // namespace content
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698