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