Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: content/public/test/mock_render_thread.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.cc ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698