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

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

Issue 10407009: Add GetIOMessageLoopProxy method to RenderThread interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 25 matching lines...) Expand all
36 // be accessed when running on the render thread itself. 36 // be accessed when running on the render thread itself.
37 static RenderThread* Get(); 37 static RenderThread* Get();
38 38
39 RenderThread(); 39 RenderThread();
40 virtual ~RenderThread(); 40 virtual ~RenderThread();
41 41
42 virtual MessageLoop* GetMessageLoop() = 0; 42 virtual MessageLoop* GetMessageLoop() = 0;
43 virtual IPC::SyncChannel* GetChannel() = 0; 43 virtual IPC::SyncChannel* GetChannel() = 0;
44 virtual std::string GetLocale() = 0; 44 virtual std::string GetLocale() = 0;
45 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() = 0; 45 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() = 0;
46 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() = 0;
46 47
47 // Called to add or remove a listener for a particular message routing ID. 48 // Called to add or remove a listener for a particular message routing ID.
48 // These methods normally get delegated to a MessageRouter. 49 // These methods normally get delegated to a MessageRouter.
49 virtual void AddRoute(int32 routing_id, IPC::Channel::Listener* listener) = 0; 50 virtual void AddRoute(int32 routing_id, IPC::Channel::Listener* listener) = 0;
50 virtual void RemoveRoute(int32 routing_id) = 0; 51 virtual void RemoveRoute(int32 routing_id) = 0;
51 virtual int GenerateRoutingID() = 0; 52 virtual int GenerateRoutingID() = 0;
52 53
53 // These map to IPC::ChannelProxy methods. 54 // These map to IPC::ChannelProxy methods.
54 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; 55 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) = 0;
55 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) = 0; 56 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) = 0;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual void PreCacheFont(const LOGFONT& log_font) = 0; 105 virtual void PreCacheFont(const LOGFONT& log_font) = 0;
105 106
106 // Release cached font. 107 // Release cached font.
107 virtual void ReleaseCachedFonts() = 0; 108 virtual void ReleaseCachedFonts() = 0;
108 #endif 109 #endif
109 }; 110 };
110 111
111 } // namespace content 112 } // namespace content
112 113
113 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 114 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698