OLD | NEW |
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 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ | 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
7 | 7 |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "content/public/renderer/render_thread.h" | 10 #include "content/public/renderer/render_thread.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 const std::string& v8_extension_name) const OVERRIDE; | 66 const std::string& v8_extension_name) const OVERRIDE; |
67 virtual void ScheduleIdleHandler(int64 initial_delay_ms) OVERRIDE; | 67 virtual void ScheduleIdleHandler(int64 initial_delay_ms) OVERRIDE; |
68 virtual void IdleHandler() OVERRIDE; | 68 virtual void IdleHandler() OVERRIDE; |
69 virtual int64 GetIdleNotificationDelayInMs() const OVERRIDE; | 69 virtual int64 GetIdleNotificationDelayInMs() const OVERRIDE; |
70 virtual void SetIdleNotificationDelayInMs( | 70 virtual void SetIdleNotificationDelayInMs( |
71 int64 idle_notification_delay_in_ms) OVERRIDE; | 71 int64 idle_notification_delay_in_ms) OVERRIDE; |
72 #if defined(OS_WIN) | 72 #if defined(OS_WIN) |
73 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; | 73 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; |
74 virtual void ReleaseCachedFonts() OVERRIDE; | 74 virtual void ReleaseCachedFonts() OVERRIDE; |
75 #endif | 75 #endif |
| 76 virtual void UpdateHistograms(int sequence_number) OVERRIDE; |
76 | 77 |
77 ////////////////////////////////////////////////////////////////////////// | 78 ////////////////////////////////////////////////////////////////////////// |
78 // The following functions are called by the test itself. | 79 // The following functions are called by the test itself. |
79 | 80 |
80 void set_routing_id(int32 id) { | 81 void set_routing_id(int32 id) { |
81 routing_id_ = id; | 82 routing_id_ = id; |
82 } | 83 } |
83 | 84 |
84 void set_surface_id(int32 id) { | 85 void set_surface_id(int32 id) { |
85 surface_id_ = id; | 86 surface_id_ = id; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // Routing id that will be assigned to a CreateWindow Widget. | 147 // Routing id that will be assigned to a CreateWindow Widget. |
147 int32 new_window_routing_id_; | 148 int32 new_window_routing_id_; |
148 | 149 |
149 // The last known good deserializer for sync messages. | 150 // The last known good deserializer for sync messages. |
150 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; | 151 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; |
151 }; | 152 }; |
152 | 153 |
153 } // namespace content | 154 } // namespace content |
154 | 155 |
155 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ | 156 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
OLD | NEW |