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

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

Issue 186973002: Add RenderThread::GetShutdownEvent(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix Created 6 years, 9 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
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | content/renderer/render_thread_impl.h » ('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/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "content/common/frame_messages.h" 8 #include "content/common/frame_messages.h"
9 #include "content/common/view_messages.h" 9 #include "content/common/view_messages.h"
10 #include "content/public/renderer/render_process_observer.h" 10 #include "content/public/renderer/render_process_observer.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 } 178 }
179 179
180 int MockRenderThread::PostTaskToAllWebWorkers(const base::Closure& closure) { 180 int MockRenderThread::PostTaskToAllWebWorkers(const base::Closure& closure) {
181 return 0; 181 return 0;
182 } 182 }
183 183
184 bool MockRenderThread::ResolveProxy(const GURL& url, std::string* proxy_list) { 184 bool MockRenderThread::ResolveProxy(const GURL& url, std::string* proxy_list) {
185 return false; 185 return false;
186 } 186 }
187 187
188 base::WaitableEvent* MockRenderThread::GetShutdownEvent() {
189 return NULL;
190 }
191
188 #if defined(OS_WIN) 192 #if defined(OS_WIN)
189 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { 193 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) {
190 } 194 }
191 195
192 void MockRenderThread::ReleaseCachedFonts() { 196 void MockRenderThread::ReleaseCachedFonts() {
193 } 197 }
194 198
195 #endif // OS_WIN 199 #endif // OS_WIN
196 200
197 void MockRenderThread::SendCloseMessage() { 201 void MockRenderThread::SendCloseMessage() {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 void MockRenderThread::OnDuplicateSection( 262 void MockRenderThread::OnDuplicateSection(
259 base::SharedMemoryHandle renderer_handle, 263 base::SharedMemoryHandle renderer_handle,
260 base::SharedMemoryHandle* browser_handle) { 264 base::SharedMemoryHandle* browser_handle) {
261 // We don't have to duplicate the input handles since RenderViewTest does not 265 // We don't have to duplicate the input handles since RenderViewTest does not
262 // separate a browser process from a renderer process. 266 // separate a browser process from a renderer process.
263 *browser_handle = renderer_handle; 267 *browser_handle = renderer_handle;
264 } 268 }
265 #endif // defined(OS_WIN) 269 #endif // defined(OS_WIN)
266 270
267 } // namespace content 271 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698