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

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

Issue 8574012: Schedule idle handler based on CPU usage. (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(int64 initial_delay_ms) { 130 void MockRenderThread::ResetIdleTimer() {
131 }
132
133 void MockRenderThread::IdleHandler() {
134 }
135
136 int64 MockRenderThread::GetIdleNotificationDelayInMs() const {
137 return 0;
138 }
139
140 void MockRenderThread::SetIdleNotificationDelayInMs(
141 int64 idle_notification_delay_in_ms) {
142 } 131 }
143 132
144 #if defined(OS_WIN) 133 #if defined(OS_WIN)
145 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { 134 void MockRenderThread::PreCacheFont(const LOGFONT& log_font) {
146 } 135 }
147 136
148 void MockRenderThread::ReleaseCachedFonts() { 137 void MockRenderThread::ReleaseCachedFonts() {
149 } 138 }
150 139
151 #endif // OS_WIN 140 #endif // OS_WIN
(...skipping 28 matching lines...) Expand all
180 void MockRenderThread::OnDuplicateSection( 169 void MockRenderThread::OnDuplicateSection(
181 base::SharedMemoryHandle renderer_handle, 170 base::SharedMemoryHandle renderer_handle,
182 base::SharedMemoryHandle* browser_handle) { 171 base::SharedMemoryHandle* browser_handle) {
183 // We don't have to duplicate the input handles since RenderViewTest does not 172 // We don't have to duplicate the input handles since RenderViewTest does not
184 // separate a browser process from a renderer process. 173 // separate a browser process from a renderer process.
185 *browser_handle = renderer_handle; 174 *browser_handle = renderer_handle;
186 } 175 }
187 #endif // defined(OS_WIN) 176 #endif // defined(OS_WIN)
188 177
189 } // namespace content 178 } // 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