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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 void SetIdleNotificationDelayInMs( | 69 void SetIdleNotificationDelayInMs( |
70 int64 idle_notification_delay_in_ms) override; | 70 int64 idle_notification_delay_in_ms) override; |
71 void UpdateHistograms(int sequence_number) override; | 71 void UpdateHistograms(int sequence_number) override; |
72 int PostTaskToAllWebWorkers(const base::Closure& closure) override; | 72 int PostTaskToAllWebWorkers(const base::Closure& closure) override; |
73 bool ResolveProxy(const GURL& url, std::string* proxy_list) override; | 73 bool ResolveProxy(const GURL& url, std::string* proxy_list) override; |
74 base::WaitableEvent* GetShutdownEvent() override; | 74 base::WaitableEvent* GetShutdownEvent() override; |
75 #if defined(OS_WIN) | 75 #if defined(OS_WIN) |
76 void PreCacheFont(const LOGFONT& log_font) override; | 76 void PreCacheFont(const LOGFONT& log_font) override; |
77 void ReleaseCachedFonts() override; | 77 void ReleaseCachedFonts() override; |
78 #endif | 78 #endif |
79 IPC::AttachmentBroker* GetAttachmentBroker() override; | |
80 ServiceRegistry* GetServiceRegistry() override; | 79 ServiceRegistry* GetServiceRegistry() override; |
81 | 80 |
82 ////////////////////////////////////////////////////////////////////////// | 81 ////////////////////////////////////////////////////////////////////////// |
83 // The following functions are called by the test itself. | 82 // The following functions are called by the test itself. |
84 | 83 |
85 void set_routing_id(int32 id) { | 84 void set_routing_id(int32 id) { |
86 routing_id_ = id; | 85 routing_id_ = id; |
87 } | 86 } |
88 | 87 |
89 void set_surface_id(int32 id) { | 88 void set_surface_id(int32 id) { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 168 |
170 // Observers to notify. | 169 // Observers to notify. |
171 base::ObserverList<RenderProcessObserver> observers_; | 170 base::ObserverList<RenderProcessObserver> observers_; |
172 | 171 |
173 cc::TestSharedBitmapManager shared_bitmap_manager_; | 172 cc::TestSharedBitmapManager shared_bitmap_manager_; |
174 }; | 173 }; |
175 | 174 |
176 } // namespace content | 175 } // namespace content |
177 | 176 |
178 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ | 177 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
OLD | NEW |