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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 virtual void RecordAction(const UserMetricsAction& action) OVERRIDE; | 59 virtual void RecordAction(const UserMetricsAction& action) OVERRIDE; |
60 virtual void RecordComputedAction(const std::string& action) OVERRIDE; | 60 virtual void RecordComputedAction(const std::string& action) OVERRIDE; |
61 virtual scoped_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( | 61 virtual scoped_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( |
62 size_t buffer_size) OVERRIDE; | 62 size_t buffer_size) OVERRIDE; |
63 virtual void RegisterExtension(v8::Extension* extension) OVERRIDE; | 63 virtual void RegisterExtension(v8::Extension* extension) OVERRIDE; |
64 virtual void ScheduleIdleHandler(int64 initial_delay_ms) OVERRIDE; | 64 virtual void ScheduleIdleHandler(int64 initial_delay_ms) OVERRIDE; |
65 virtual void IdleHandler() OVERRIDE; | 65 virtual void IdleHandler() OVERRIDE; |
66 virtual int64 GetIdleNotificationDelayInMs() const OVERRIDE; | 66 virtual int64 GetIdleNotificationDelayInMs() const OVERRIDE; |
67 virtual void SetIdleNotificationDelayInMs( | 67 virtual void SetIdleNotificationDelayInMs( |
68 int64 idle_notification_delay_in_ms) OVERRIDE; | 68 int64 idle_notification_delay_in_ms) OVERRIDE; |
69 virtual void ToggleWebKitSharedTimer(bool suspend) OVERRIDE; | |
70 virtual void UpdateHistograms(int sequence_number) OVERRIDE; | 69 virtual void UpdateHistograms(int sequence_number) OVERRIDE; |
71 virtual int PostTaskToAllWebWorkers(const base::Closure& closure) OVERRIDE; | 70 virtual int PostTaskToAllWebWorkers(const base::Closure& closure) OVERRIDE; |
72 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) OVERRIDE; | 71 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) OVERRIDE; |
73 #if defined(OS_WIN) | 72 #if defined(OS_WIN) |
74 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; | 73 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; |
75 virtual void ReleaseCachedFonts() OVERRIDE; | 74 virtual void ReleaseCachedFonts() OVERRIDE; |
76 #endif | 75 #endif |
77 | 76 |
78 ////////////////////////////////////////////////////////////////////////// | 77 ////////////////////////////////////////////////////////////////////////// |
79 // The following functions are called by the test itself. | 78 // The following functions are called by the test itself. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // A list of message filters added to this thread. | 160 // A list of message filters added to this thread. |
162 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_; | 161 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_; |
163 | 162 |
164 // Observers to notify. | 163 // Observers to notify. |
165 ObserverList<RenderProcessObserver> observers_; | 164 ObserverList<RenderProcessObserver> observers_; |
166 }; | 165 }; |
167 | 166 |
168 } // namespace content | 167 } // namespace content |
169 | 168 |
170 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ | 169 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
OLD | NEW |