| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 void RemoveRoute(int32_t routing_id) override; | 58 void RemoveRoute(int32_t routing_id) override; |
| 59 int GenerateRoutingID() override; | 59 int GenerateRoutingID() override; |
| 60 void AddFilter(IPC::MessageFilter* filter) override; | 60 void AddFilter(IPC::MessageFilter* filter) override; |
| 61 void RemoveFilter(IPC::MessageFilter* filter) override; | 61 void RemoveFilter(IPC::MessageFilter* filter) override; |
| 62 void AddObserver(RenderProcessObserver* observer) override; | 62 void AddObserver(RenderProcessObserver* observer) override; |
| 63 void RemoveObserver(RenderProcessObserver* observer) override; | 63 void RemoveObserver(RenderProcessObserver* observer) override; |
| 64 void SetResourceDispatcherDelegate( | 64 void SetResourceDispatcherDelegate( |
| 65 ResourceDispatcherDelegate* delegate) override; | 65 ResourceDispatcherDelegate* delegate) override; |
| 66 void RecordAction(const base::UserMetricsAction& action) override; | 66 void RecordAction(const base::UserMetricsAction& action) override; |
| 67 void RecordComputedAction(const std::string& action) override; | 67 void RecordComputedAction(const std::string& action) override; |
| 68 scoped_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( | 68 std::unique_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( |
| 69 size_t buffer_size) override; | 69 size_t buffer_size) override; |
| 70 cc::SharedBitmapManager* GetSharedBitmapManager() override; | 70 cc::SharedBitmapManager* GetSharedBitmapManager() override; |
| 71 void RegisterExtension(v8::Extension* extension) override; | 71 void RegisterExtension(v8::Extension* extension) override; |
| 72 void ScheduleIdleHandler(int64_t initial_delay_ms) override; | 72 void ScheduleIdleHandler(int64_t initial_delay_ms) override; |
| 73 void IdleHandler() override; | 73 void IdleHandler() override; |
| 74 int64_t GetIdleNotificationDelayInMs() const override; | 74 int64_t GetIdleNotificationDelayInMs() const override; |
| 75 void SetIdleNotificationDelayInMs( | 75 void SetIdleNotificationDelayInMs( |
| 76 int64_t idle_notification_delay_in_ms) override; | 76 int64_t idle_notification_delay_in_ms) override; |
| 77 void UpdateHistograms(int sequence_number) override; | 77 void UpdateHistograms(int sequence_number) override; |
| 78 int PostTaskToAllWebWorkers(const base::Closure& closure) override; | 78 int PostTaskToAllWebWorkers(const base::Closure& closure) override; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // Opener id reported by the Widget. | 142 // Opener id reported by the Widget. |
| 143 int32_t opener_id_; | 143 int32_t opener_id_; |
| 144 | 144 |
| 145 // Routing id that will be assigned to a CreateWindow Widget. | 145 // Routing id that will be assigned to a CreateWindow Widget. |
| 146 int32_t new_window_routing_id_; | 146 int32_t new_window_routing_id_; |
| 147 int32_t new_window_main_frame_routing_id_; | 147 int32_t new_window_main_frame_routing_id_; |
| 148 int32_t new_window_main_frame_widget_routing_id_; | 148 int32_t new_window_main_frame_widget_routing_id_; |
| 149 int32_t new_frame_routing_id_; | 149 int32_t new_frame_routing_id_; |
| 150 | 150 |
| 151 // The last known good deserializer for sync messages. | 151 // The last known good deserializer for sync messages. |
| 152 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; | 152 std::unique_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; |
| 153 | 153 |
| 154 // A list of message filters added to this thread. | 154 // A list of message filters added to this thread. |
| 155 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; | 155 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; |
| 156 | 156 |
| 157 // Observers to notify. | 157 // Observers to notify. |
| 158 base::ObserverList<RenderProcessObserver> observers_; | 158 base::ObserverList<RenderProcessObserver> observers_; |
| 159 | 159 |
| 160 cc::TestSharedBitmapManager shared_bitmap_manager_; | 160 cc::TestSharedBitmapManager shared_bitmap_manager_; |
| 161 scoped_ptr<ServiceRegistry> service_registry_; | 161 std::unique_ptr<ServiceRegistry> service_registry_; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace content | 164 } // namespace content |
| 165 | 165 |
| 166 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ | 166 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
| OLD | NEW |