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

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

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 int64_t idle_notification_delay_in_ms) override; 79 int64_t idle_notification_delay_in_ms) override;
80 void UpdateHistograms(int sequence_number) override; 80 void UpdateHistograms(int sequence_number) override;
81 int PostTaskToAllWebWorkers(const base::Closure& closure) override; 81 int PostTaskToAllWebWorkers(const base::Closure& closure) override;
82 bool ResolveProxy(const GURL& url, std::string* proxy_list) override; 82 bool ResolveProxy(const GURL& url, std::string* proxy_list) override;
83 base::WaitableEvent* GetShutdownEvent() override; 83 base::WaitableEvent* GetShutdownEvent() override;
84 #if defined(OS_WIN) 84 #if defined(OS_WIN)
85 void PreCacheFont(const LOGFONT& log_font) override; 85 void PreCacheFont(const LOGFONT& log_font) override;
86 void ReleaseCachedFonts() override; 86 void ReleaseCachedFonts() override;
87 #endif 87 #endif
88 ServiceManagerConnection* GetServiceManagerConnection() override; 88 ServiceManagerConnection* GetServiceManagerConnection() override;
89 shell::InterfaceRegistry* GetInterfaceRegistry() override; 89 service_manager::InterfaceRegistry* GetInterfaceRegistry() override;
90 shell::InterfaceProvider* GetRemoteInterfaces() override; 90 service_manager::InterfaceProvider* GetRemoteInterfaces() override;
91 91
92 ////////////////////////////////////////////////////////////////////////// 92 //////////////////////////////////////////////////////////////////////////
93 // The following functions are called by the test itself. 93 // The following functions are called by the test itself.
94 94
95 void set_routing_id(int32_t id) { routing_id_ = id; } 95 void set_routing_id(int32_t id) { routing_id_ = id; }
96 96
97 int32_t opener_id() const { return opener_id_; } 97 int32_t opener_id() const { return opener_id_; }
98 98
99 void set_new_window_routing_id(int32_t id) { new_window_routing_id_ = id; } 99 void set_new_window_routing_id(int32_t id) { new_window_routing_id_ = id; }
100 100
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // The last known good deserializer for sync messages. 156 // The last known good deserializer for sync messages.
157 std::unique_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; 157 std::unique_ptr<IPC::MessageReplyDeserializer> reply_deserializer_;
158 158
159 // A list of message filters added to this thread. 159 // A list of message filters added to this thread.
160 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; 160 std::vector<scoped_refptr<IPC::MessageFilter> > filters_;
161 161
162 // Observers to notify. 162 // Observers to notify.
163 base::ObserverList<RenderThreadObserver> observers_; 163 base::ObserverList<RenderThreadObserver> observers_;
164 164
165 cc::TestSharedBitmapManager shared_bitmap_manager_; 165 cc::TestSharedBitmapManager shared_bitmap_manager_;
166 std::unique_ptr<shell::InterfaceRegistry> interface_registry_; 166 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_;
167 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_; 167 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_;
168 shell::mojom::InterfaceProviderRequest 168 service_manager::mojom::InterfaceProviderRequest
169 pending_remote_interface_provider_request_; 169 pending_remote_interface_provider_request_;
170 170
171 std::unique_ptr<mojom::RenderMessageFilter> mock_render_message_filter_; 171 std::unique_ptr<mojom::RenderMessageFilter> mock_render_message_filter_;
172 }; 172 };
173 173
174 } // namespace content 174 } // namespace content
175 175
176 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ 176 #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