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

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

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 #ifndef CONTENT_TEST_MOCK_RENDER_THREAD_H_ 5 #ifndef CONTENT_TEST_MOCK_RENDER_THREAD_H_
6 #define CONTENT_TEST_MOCK_RENDER_THREAD_H_ 6 #define CONTENT_TEST_MOCK_RENDER_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/public/renderer/render_thread.h" 10 #include "content/public/renderer/render_thread.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 content::ResourceDispatcherDelegate* delegate) OVERRIDE; 49 content::ResourceDispatcherDelegate* delegate) OVERRIDE;
50 virtual void WidgetHidden() OVERRIDE; 50 virtual void WidgetHidden() OVERRIDE;
51 virtual void WidgetRestored() OVERRIDE; 51 virtual void WidgetRestored() OVERRIDE;
52 virtual void EnsureWebKitInitialized() OVERRIDE; 52 virtual void EnsureWebKitInitialized() OVERRIDE;
53 virtual void RecordUserMetrics(const std::string& action) OVERRIDE; 53 virtual void RecordUserMetrics(const std::string& action) OVERRIDE;
54 virtual base::SharedMemoryHandle HostAllocateSharedMemoryBuffer( 54 virtual base::SharedMemoryHandle HostAllocateSharedMemoryBuffer(
55 uint32 buffer_size) OVERRIDE; 55 uint32 buffer_size) OVERRIDE;
56 virtual void RegisterExtension(v8::Extension* extension) OVERRIDE; 56 virtual void RegisterExtension(v8::Extension* extension) OVERRIDE;
57 virtual bool IsRegisteredExtension( 57 virtual bool IsRegisteredExtension(
58 const std::string& v8_extension_name) const OVERRIDE; 58 const std::string& v8_extension_name) const OVERRIDE;
59 virtual void ScheduleIdleHandler(double initial_delay_s) OVERRIDE; 59 virtual void ScheduleIdleHandler(int64 initial_delay_ms) OVERRIDE;
60 virtual void IdleHandler() OVERRIDE; 60 virtual void IdleHandler() OVERRIDE;
61 virtual double GetIdleNotificationDelayInS() const OVERRIDE; 61 virtual int64 GetIdleNotificationDelayInMs() const OVERRIDE;
62 virtual void SetIdleNotificationDelayInS( 62 virtual void SetIdleNotificationDelayInMs(
63 double idle_notification_delay_in_s) OVERRIDE; 63 double idle_notification_delay_in_ms) OVERRIDE;
64 #if defined(OS_WIN) 64 #if defined(OS_WIN)
65 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; 65 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE;
66 virtual void ReleaseCachedFonts() OVERRIDE; 66 virtual void ReleaseCachedFonts() OVERRIDE;
67 #endif 67 #endif
68 68
69 ////////////////////////////////////////////////////////////////////////// 69 //////////////////////////////////////////////////////////////////////////
70 // The following functions are called by the test itself. 70 // The following functions are called by the test itself.
71 71
72 void set_routing_id(int32 id) { 72 void set_routing_id(int32 id) {
73 routing_id_ = id; 73 routing_id_ = id;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // adds a new route. 113 // adds a new route.
114 IPC::Channel::Listener* widget_; 114 IPC::Channel::Listener* widget_;
115 115
116 // The last known good deserializer for sync messages. 116 // The last known good deserializer for sync messages.
117 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; 117 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_;
118 }; 118 };
119 119
120 } // namespace content 120 } // namespace content
121 121
122 #endif // CONTENT_TEST_MOCK_RENDER_THREAD_H_ 122 #endif // CONTENT_TEST_MOCK_RENDER_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698