OLD | NEW |
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 Loading... |
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(int64 initial_delay_ms) OVERRIDE; | 59 virtual void ResetIdleTimer() OVERRIDE; |
60 virtual void IdleHandler() OVERRIDE; | |
61 virtual int64 GetIdleNotificationDelayInMs() const OVERRIDE; | |
62 virtual void SetIdleNotificationDelayInMs( | |
63 int64 idle_notification_delay_in_ms) OVERRIDE; | |
64 #if defined(OS_WIN) | 60 #if defined(OS_WIN) |
65 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; | 61 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; |
66 virtual void ReleaseCachedFonts() OVERRIDE; | 62 virtual void ReleaseCachedFonts() OVERRIDE; |
67 #endif | 63 #endif |
68 | 64 |
69 ////////////////////////////////////////////////////////////////////////// | 65 ////////////////////////////////////////////////////////////////////////// |
70 // The following functions are called by the test itself. | 66 // The following functions are called by the test itself. |
71 | 67 |
72 void set_routing_id(int32 id) { | 68 void set_routing_id(int32 id) { |
73 routing_id_ = id; | 69 routing_id_ = id; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // adds a new route. | 109 // adds a new route. |
114 IPC::Channel::Listener* widget_; | 110 IPC::Channel::Listener* widget_; |
115 | 111 |
116 // The last known good deserializer for sync messages. | 112 // The last known good deserializer for sync messages. |
117 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; | 113 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; |
118 }; | 114 }; |
119 | 115 |
120 } // namespace content | 116 } // namespace content |
121 | 117 |
122 #endif // CONTENT_TEST_MOCK_RENDER_THREAD_H_ | 118 #endif // CONTENT_TEST_MOCK_RENDER_THREAD_H_ |
OLD | NEW |