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

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

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 ~MockRenderThread() override; 47 ~MockRenderThread() override;
48 48
49 // Provides access to the messages that have been received by this thread. 49 // Provides access to the messages that have been received by this thread.
50 IPC::TestSink& sink() { return sink_; } 50 IPC::TestSink& sink() { return sink_; }
51 51
52 // RenderThread implementation: 52 // RenderThread implementation:
53 bool Send(IPC::Message* msg) override; 53 bool Send(IPC::Message* msg) override;
54 IPC::SyncChannel* GetChannel() override; 54 IPC::SyncChannel* GetChannel() override;
55 std::string GetLocale() override; 55 std::string GetLocale() override;
56 IPC::SyncMessageFilter* GetSyncMessageFilter() override; 56 IPC::SyncMessageFilter* GetSyncMessageFilter() override;
57 scoped_refptr<base::SingleThreadTaskRunner> GetIOMessageLoopProxy() override; 57 scoped_refptr<base::SingleThreadTaskRunner> GetIOTaskRunner() override;
58 void AddRoute(int32_t routing_id, IPC::Listener* listener) override; 58 void AddRoute(int32_t routing_id, IPC::Listener* listener) override;
59 void RemoveRoute(int32_t routing_id) override; 59 void RemoveRoute(int32_t routing_id) override;
60 int GenerateRoutingID() override; 60 int GenerateRoutingID() override;
61 void AddFilter(IPC::MessageFilter* filter) override; 61 void AddFilter(IPC::MessageFilter* filter) override;
62 void RemoveFilter(IPC::MessageFilter* filter) override; 62 void RemoveFilter(IPC::MessageFilter* filter) override;
63 void AddObserver(RenderThreadObserver* observer) override; 63 void AddObserver(RenderThreadObserver* observer) override;
64 void RemoveObserver(RenderThreadObserver* observer) override; 64 void RemoveObserver(RenderThreadObserver* observer) override;
65 void SetResourceDispatcherDelegate( 65 void SetResourceDispatcherDelegate(
66 ResourceDispatcherDelegate* delegate) override; 66 ResourceDispatcherDelegate* delegate) override;
67 void RecordAction(const base::UserMetricsAction& action) override; 67 void RecordAction(const base::UserMetricsAction& action) override;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 cc::TestSharedBitmapManager shared_bitmap_manager_; 163 cc::TestSharedBitmapManager shared_bitmap_manager_;
164 std::unique_ptr<shell::InterfaceRegistry> interface_registry_; 164 std::unique_ptr<shell::InterfaceRegistry> interface_registry_;
165 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_; 165 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_;
166 shell::mojom::InterfaceProviderRequest 166 shell::mojom::InterfaceProviderRequest
167 pending_remote_interface_provider_request_; 167 pending_remote_interface_provider_request_;
168 }; 168 };
169 169
170 } // namespace content 170 } // namespace content
171 171
172 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ 172 #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