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

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, 5 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/renderer/render_thread_impl.cc ('k') | no next file » | 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/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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 #if defined(OS_WIN) 168 #if defined(OS_WIN)
169 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { 169 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) {
170 } 170 }
171 171
172 void MockRenderThread::ReleaseCachedFonts() { 172 void MockRenderThread::ReleaseCachedFonts() {
173 } 173 }
174 174
175 #endif // OS_WIN 175 #endif // OS_WIN
176 176
177 void MockRenderThread::UpdateHistograms(int sequence_number) {
178 }
179
177 void MockRenderThread::SendCloseMessage() { 180 void MockRenderThread::SendCloseMessage() {
178 ViewMsg_Close msg(routing_id_); 181 ViewMsg_Close msg(routing_id_);
179 widget_->OnMessageReceived(msg); 182 widget_->OnMessageReceived(msg);
180 } 183 }
181 184
182 // The Widget expects to be returned valid route_id. 185 // The Widget expects to be returned valid route_id.
183 void MockRenderThread::OnMsgCreateWidget(int opener_id, 186 void MockRenderThread::OnMsgCreateWidget(int opener_id,
184 WebKit::WebPopupType popup_type, 187 WebKit::WebPopupType popup_type,
185 int* route_id, 188 int* route_id,
186 int* surface_id) { 189 int* surface_id) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 void MockRenderThread::OnDuplicateSection( 221 void MockRenderThread::OnDuplicateSection(
219 base::SharedMemoryHandle renderer_handle, 222 base::SharedMemoryHandle renderer_handle,
220 base::SharedMemoryHandle* browser_handle) { 223 base::SharedMemoryHandle* browser_handle) {
221 // We don't have to duplicate the input handles since RenderViewTest does not 224 // We don't have to duplicate the input handles since RenderViewTest does not
222 // separate a browser process from a renderer process. 225 // separate a browser process from a renderer process.
223 *browser_handle = renderer_handle; 226 *browser_handle = renderer_handle;
224 } 227 }
225 #endif // defined(OS_WIN) 228 #endif // defined(OS_WIN)
226 229
227 } // namespace content 230 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698