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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual scoped_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( | 62 virtual scoped_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( |
63 uint32 buffer_size) OVERRIDE; | 63 uint32 buffer_size) OVERRIDE; |
64 virtual void RegisterExtension(v8::Extension* extension) OVERRIDE; | 64 virtual void RegisterExtension(v8::Extension* extension) OVERRIDE; |
65 virtual void ScheduleIdleHandler(int64 initial_delay_ms) OVERRIDE; | 65 virtual void ScheduleIdleHandler(int64 initial_delay_ms) OVERRIDE; |
66 virtual void IdleHandler() OVERRIDE; | 66 virtual void IdleHandler() OVERRIDE; |
67 virtual int64 GetIdleNotificationDelayInMs() const OVERRIDE; | 67 virtual int64 GetIdleNotificationDelayInMs() const OVERRIDE; |
68 virtual void SetIdleNotificationDelayInMs( | 68 virtual void SetIdleNotificationDelayInMs( |
69 int64 idle_notification_delay_in_ms) OVERRIDE; | 69 int64 idle_notification_delay_in_ms) OVERRIDE; |
70 virtual void ToggleWebKitSharedTimer(bool suspend) OVERRIDE; | 70 virtual void ToggleWebKitSharedTimer(bool suspend) OVERRIDE; |
71 virtual void UpdateHistograms(int sequence_number) OVERRIDE; | 71 virtual void UpdateHistograms(int sequence_number) OVERRIDE; |
| 72 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) OVERRIDE; |
72 #if defined(OS_WIN) | 73 #if defined(OS_WIN) |
73 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; | 74 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; |
74 virtual void ReleaseCachedFonts() OVERRIDE; | 75 virtual void ReleaseCachedFonts() OVERRIDE; |
75 #endif | 76 #endif |
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; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // A list of message filters added to this thread. | 153 // A list of message filters added to this thread. |
153 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_; | 154 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_; |
154 }; | 155 }; |
155 | 156 |
156 } // namespace content | 157 } // namespace content |
157 | 158 |
158 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ | 159 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
OLD | NEW |