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

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

Issue 2079943002: Change RenderFrame to use InterfaceRegistry et al. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2
Patch Set: . Created 4 years, 6 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
« no previous file with comments | « content/public/renderer/render_thread.h ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 #include "base/memory/shared_memory.h" 11 #include "base/memory/shared_memory.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "cc/test/test_shared_bitmap_manager.h" 15 #include "cc/test/test_shared_bitmap_manager.h"
16 #include "content/public/renderer/render_thread.h" 16 #include "content/public/renderer/render_thread.h"
17 #include "ipc/ipc_test_sink.h" 17 #include "ipc/ipc_test_sink.h"
18 #include "ipc/message_filter.h" 18 #include "ipc/message_filter.h"
19 #include "services/shell/public/interfaces/interface_provider.mojom.h"
19 #include "third_party/WebKit/public/web/WebPopupType.h" 20 #include "third_party/WebKit/public/web/WebPopupType.h"
20 21
21 struct FrameHostMsg_CreateChildFrame_Params; 22 struct FrameHostMsg_CreateChildFrame_Params;
22 struct ViewHostMsg_CreateWindow_Params; 23 struct ViewHostMsg_CreateWindow_Params;
23 struct ViewHostMsg_CreateWindow_Reply; 24 struct ViewHostMsg_CreateWindow_Reply;
24 25
25 namespace IPC { 26 namespace IPC {
26 class MessageFilter; 27 class MessageFilter;
27 class MessageReplyDeserializer; 28 class MessageReplyDeserializer;
28 } 29 }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void SetIdleNotificationDelayInMs( 76 void SetIdleNotificationDelayInMs(
76 int64_t idle_notification_delay_in_ms) override; 77 int64_t idle_notification_delay_in_ms) override;
77 void UpdateHistograms(int sequence_number) override; 78 void UpdateHistograms(int sequence_number) override;
78 int PostTaskToAllWebWorkers(const base::Closure& closure) override; 79 int PostTaskToAllWebWorkers(const base::Closure& closure) override;
79 bool ResolveProxy(const GURL& url, std::string* proxy_list) override; 80 bool ResolveProxy(const GURL& url, std::string* proxy_list) override;
80 base::WaitableEvent* GetShutdownEvent() override; 81 base::WaitableEvent* GetShutdownEvent() override;
81 #if defined(OS_WIN) 82 #if defined(OS_WIN)
82 void PreCacheFont(const LOGFONT& log_font) override; 83 void PreCacheFont(const LOGFONT& log_font) override;
83 void ReleaseCachedFonts() override; 84 void ReleaseCachedFonts() override;
84 #endif 85 #endif
85 ServiceRegistry* GetServiceRegistry() override; 86 shell::InterfaceRegistry* GetInterfaceRegistry() override;
87 shell::InterfaceProvider* GetRemoteInterfaces() override;
86 88
87 ////////////////////////////////////////////////////////////////////////// 89 //////////////////////////////////////////////////////////////////////////
88 // The following functions are called by the test itself. 90 // The following functions are called by the test itself.
89 91
90 void set_routing_id(int32_t id) { routing_id_ = id; } 92 void set_routing_id(int32_t id) { routing_id_ = id; }
91 93
92 int32_t opener_id() const { return opener_id_; } 94 int32_t opener_id() const { return opener_id_; }
93 95
94 void set_new_window_routing_id(int32_t id) { new_window_routing_id_ = id; } 96 void set_new_window_routing_id(int32_t id) { new_window_routing_id_ = id; }
95 97
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // The last known good deserializer for sync messages. 153 // The last known good deserializer for sync messages.
152 std::unique_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; 154 std::unique_ptr<IPC::MessageReplyDeserializer> reply_deserializer_;
153 155
154 // A list of message filters added to this thread. 156 // A list of message filters added to this thread.
155 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; 157 std::vector<scoped_refptr<IPC::MessageFilter> > filters_;
156 158
157 // Observers to notify. 159 // Observers to notify.
158 base::ObserverList<RenderThreadObserver> observers_; 160 base::ObserverList<RenderThreadObserver> observers_;
159 161
160 cc::TestSharedBitmapManager shared_bitmap_manager_; 162 cc::TestSharedBitmapManager shared_bitmap_manager_;
161 std::unique_ptr<ServiceRegistry> service_registry_; 163 std::unique_ptr<shell::InterfaceRegistry> interface_registry_;
164 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_;
165 shell::mojom::InterfaceProviderRequest
166 pending_remote_interface_provider_request_;
162 }; 167 };
163 168
164 } // namespace content 169 } // namespace content
165 170
166 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ 171 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « content/public/renderer/render_thread.h ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698