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

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

Issue 2821473002: Service CreateNewWindow on the UI thread with a new mojo interface (Closed)
Patch Set: associated with IPC channel Created 3 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 20 matching lines...) Expand all
31 enum class WebSandboxFlags; 31 enum class WebSandboxFlags;
32 enum class WebTreeScopeType; 32 enum class WebTreeScopeType;
33 } 33 }
34 34
35 namespace content { 35 namespace content {
36 36
37 namespace mojom { 37 namespace mojom {
38 class CreateNewWindowParams; 38 class CreateNewWindowParams;
39 class CreateNewWindowReply; 39 class CreateNewWindowReply;
40 class RenderMessageFilter; 40 class RenderMessageFilter;
41 class RenderMessageFilterUI;
41 } 42 }
42 43
43 // This class is a very simple mock of RenderThread. It simulates an IPC channel 44 // This class is a very simple mock of RenderThread. It simulates an IPC channel
44 // which supports only three messages: 45 // which supports only three messages:
45 // ViewHostMsg_CreateWidget : sync message sent by the Widget. 46 // ViewHostMsg_CreateWidget : sync message sent by the Widget.
46 // ViewMsg_Close : async, send to the Widget. 47 // ViewMsg_Close : async, send to the Widget.
47 class MockRenderThread : public RenderThread { 48 class MockRenderThread : public RenderThread {
48 public: 49 public:
49 MockRenderThread(); 50 MockRenderThread();
50 ~MockRenderThread() override; 51 ~MockRenderThread() override;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 166
166 // Observers to notify. 167 // Observers to notify.
167 base::ObserverList<RenderThreadObserver> observers_; 168 base::ObserverList<RenderThreadObserver> observers_;
168 169
169 cc::TestSharedBitmapManager shared_bitmap_manager_; 170 cc::TestSharedBitmapManager shared_bitmap_manager_;
170 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_; 171 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_;
171 std::unique_ptr<service_manager::Connector> connector_; 172 std::unique_ptr<service_manager::Connector> connector_;
172 service_manager::mojom::ConnectorRequest pending_connector_request_; 173 service_manager::mojom::ConnectorRequest pending_connector_request_;
173 174
174 std::unique_ptr<mojom::RenderMessageFilter> mock_render_message_filter_; 175 std::unique_ptr<mojom::RenderMessageFilter> mock_render_message_filter_;
176 std::unique_ptr<mojom::RenderMessageFilterUI> mock_render_message_filter_ui_;
175 }; 177 };
176 178
177 } // namespace content 179 } // namespace content
178 180
179 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ 181 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698