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

Side by Side Diff: content/public/renderer/render_thread.h

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. Created 5 years, 7 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/ppapi_plugin/ppapi_thread.cc ('k') | content/public/test/mock_render_thread.h » ('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_RENDERER_RENDER_THREAD_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // be accessed when running on the render thread itself. 47 // be accessed when running on the render thread itself.
48 static RenderThread* Get(); 48 static RenderThread* Get();
49 49
50 RenderThread(); 50 RenderThread();
51 ~RenderThread() override; 51 ~RenderThread() override;
52 52
53 virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() = 0; 53 virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() = 0;
54 virtual IPC::SyncChannel* GetChannel() = 0; 54 virtual IPC::SyncChannel* GetChannel() = 0;
55 virtual std::string GetLocale() = 0; 55 virtual std::string GetLocale() = 0;
56 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() = 0; 56 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() = 0;
57 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() = 0; 57 virtual scoped_refptr<base::SingleThreadTaskRunner>
58 GetIOMessageLoopProxy() = 0;
58 59
59 // Called to add or remove a listener for a particular message routing ID. 60 // Called to add or remove a listener for a particular message routing ID.
60 // These methods normally get delegated to a MessageRouter. 61 // These methods normally get delegated to a MessageRouter.
61 virtual void AddRoute(int32 routing_id, IPC::Listener* listener) = 0; 62 virtual void AddRoute(int32 routing_id, IPC::Listener* listener) = 0;
62 virtual void RemoveRoute(int32 routing_id) = 0; 63 virtual void RemoveRoute(int32 routing_id) = 0;
63 virtual int GenerateRoutingID() = 0; 64 virtual int GenerateRoutingID() = 0;
64 65
65 // These map to IPC::ChannelProxy methods. 66 // These map to IPC::ChannelProxy methods.
66 virtual void AddFilter(IPC::MessageFilter* filter) = 0; 67 virtual void AddFilter(IPC::MessageFilter* filter) = 0;
67 virtual void RemoveFilter(IPC::MessageFilter* filter) = 0; 68 virtual void RemoveFilter(IPC::MessageFilter* filter) = 0;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Gets the shutdown event for the process. 132 // Gets the shutdown event for the process.
132 virtual base::WaitableEvent* GetShutdownEvent() = 0; 133 virtual base::WaitableEvent* GetShutdownEvent() = 0;
133 134
134 // Returns the ServiceRegistry for this thread. 135 // Returns the ServiceRegistry for this thread.
135 virtual ServiceRegistry* GetServiceRegistry() = 0; 136 virtual ServiceRegistry* GetServiceRegistry() = 0;
136 }; 137 };
137 138
138 } // namespace content 139 } // namespace content
139 140
140 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 141 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.cc ('k') | content/public/test/mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698