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

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

Issue 10454086: Histograms - Support histograms for Plugins, GPU (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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/test/mock_render_thread.h" 5 #include "content/test/mock_render_thread.h"
6 6
7 #include "base/process_util.h" 7 #include "base/process_util.h"
8 #include "content/common/view_messages.h" 8 #include "content/common/view_messages.h"
9 #include "ipc/ipc_message_utils.h" 9 #include "ipc/ipc_message_utils.h"
10 #include "ipc/ipc_sync_message.h" 10 #include "ipc/ipc_sync_message.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } 64 }
65 65
66 std::string MockRenderThread::GetLocale() { 66 std::string MockRenderThread::GetLocale() {
67 return std::string(); 67 return std::string();
68 } 68 }
69 69
70 IPC::SyncMessageFilter* MockRenderThread::GetSyncMessageFilter() { 70 IPC::SyncMessageFilter* MockRenderThread::GetSyncMessageFilter() {
71 return NULL; 71 return NULL;
72 } 72 }
73 73
74 base::HistogramSender* MockRenderThread::GetHistogramSender() {
75 return NULL;
76 }
77
74 scoped_refptr<base::MessageLoopProxy> 78 scoped_refptr<base::MessageLoopProxy>
75 MockRenderThread::GetIOMessageLoopProxy() { 79 MockRenderThread::GetIOMessageLoopProxy() {
76 return scoped_refptr<base::MessageLoopProxy>(); 80 return scoped_refptr<base::MessageLoopProxy>();
77 } 81 }
78 82
79 void MockRenderThread::AddRoute(int32 routing_id, 83 void MockRenderThread::AddRoute(int32 routing_id,
80 IPC::Channel::Listener* listener) { 84 IPC::Channel::Listener* listener) {
81 // We may hear this for views created from OnMsgCreateWindow as well, 85 // We may hear this for views created from OnMsgCreateWindow as well,
82 // in which case we don't want to track the new widget. 86 // in which case we don't want to track the new widget.
83 if (routing_id_ == routing_id) 87 if (routing_id_ == routing_id)
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 void MockRenderThread::OnDuplicateSection( 222 void MockRenderThread::OnDuplicateSection(
219 base::SharedMemoryHandle renderer_handle, 223 base::SharedMemoryHandle renderer_handle,
220 base::SharedMemoryHandle* browser_handle) { 224 base::SharedMemoryHandle* browser_handle) {
221 // We don't have to duplicate the input handles since RenderViewTest does not 225 // We don't have to duplicate the input handles since RenderViewTest does not
222 // separate a browser process from a renderer process. 226 // separate a browser process from a renderer process.
223 *browser_handle = renderer_handle; 227 *browser_handle = renderer_handle;
224 } 228 }
225 #endif // defined(OS_WIN) 229 #endif // defined(OS_WIN)
226 230
227 } // namespace content 231 } // namespace content
OLDNEW
« chrome/renderer/page_load_histograms.cc ('K') | « content/test/mock_render_thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698