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

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

Issue 8463019: Convert render thread idle delays from seconds to milliseconds. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 120 }
121 121
122 void MockRenderThread::RegisterExtension(v8::Extension* extension) { 122 void MockRenderThread::RegisterExtension(v8::Extension* extension) {
123 } 123 }
124 124
125 bool MockRenderThread::IsRegisteredExtension( 125 bool MockRenderThread::IsRegisteredExtension(
126 const std::string& v8_extension_name) const { 126 const std::string& v8_extension_name) const {
127 return false; 127 return false;
128 } 128 }
129 129
130 void MockRenderThread::ScheduleIdleHandler(double initial_delay_s) { 130 void MockRenderThread::ScheduleIdleHandler(int64 initial_delay_ms) {
131 } 131 }
132 132
133 void MockRenderThread::IdleHandler() { 133 void MockRenderThread::IdleHandler() {
134 } 134 }
135 135
136 double MockRenderThread::GetIdleNotificationDelayInS() const { 136 int64 MockRenderThread::GetIdleNotificationDelayInMs() const {
137 return 0.0; 137 return 0;
138 } 138 }
139 139
140 void MockRenderThread::SetIdleNotificationDelayInS( 140 void MockRenderThread::SetIdleNotificationDelayInMs(
141 double idle_notification_delay_in_s) { 141 int64 idle_notification_delay_in_ms) {
142 } 142 }
143 143
144 #if defined(OS_WIN) 144 #if defined(OS_WIN)
145 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { 145 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) {
146 } 146 }
147 147
148 void MockRenderThread::ReleaseCachedFonts() { 148 void MockRenderThread::ReleaseCachedFonts() {
149 } 149 }
150 150
151 #endif // OS_WIN 151 #endif // OS_WIN
(...skipping 28 matching lines...) Expand all
180 void MockRenderThread::OnDuplicateSection( 180 void MockRenderThread::OnDuplicateSection(
181 base::SharedMemoryHandle renderer_handle, 181 base::SharedMemoryHandle renderer_handle,
182 base::SharedMemoryHandle* browser_handle) { 182 base::SharedMemoryHandle* browser_handle) {
183 // We don't have to duplicate the input handles since RenderViewTest does not 183 // We don't have to duplicate the input handles since RenderViewTest does not
184 // separate a browser process from a renderer process. 184 // separate a browser process from a renderer process.
185 *browser_handle = renderer_handle; 185 *browser_handle = renderer_handle;
186 } 186 }
187 #endif // defined(OS_WIN) 187 #endif // defined(OS_WIN)
188 188
189 } // namespace content 189 } // namespace content
OLDNEW
« content/renderer/render_thread_impl.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