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

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

Issue 13243003: Move MessageLoop to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "ipc/ipc_channel_proxy.h" 11 #include "ipc/ipc_channel_proxy.h"
12 #include "ipc/ipc_sender.h" 12 #include "ipc/ipc_sender.h"
13 13
14 #if defined(OS_WIN) 14 #if defined(OS_WIN)
15 #include <windows.h> 15 #include <windows.h>
16 #endif 16 #endif
17 17
18 class GURL; 18 class GURL;
19 class MessageLoop;
20 19
21 namespace base { 20 namespace base {
21 class MessageLoop;
22 class MessageLoopProxy; 22 class MessageLoopProxy;
23 } 23 }
24 24
25 namespace IPC { 25 namespace IPC {
26 class SyncChannel; 26 class SyncChannel;
27 class SyncMessageFilter; 27 class SyncMessageFilter;
28 } 28 }
29 29
30 namespace v8 { 30 namespace v8 {
31 class Extension; 31 class Extension;
32 } 32 }
33 33
34 namespace content { 34 namespace content {
35 35
36 class RenderProcessObserver; 36 class RenderProcessObserver;
37 class ResourceDispatcherDelegate; 37 class ResourceDispatcherDelegate;
38 38
39 class CONTENT_EXPORT RenderThread : public IPC::Sender { 39 class CONTENT_EXPORT RenderThread : public IPC::Sender {
40 public: 40 public:
41 // Returns the one render thread for this process. Note that this can only 41 // Returns the one render thread for this process. Note that this can only
42 // be accessed when running on the render thread itself. 42 // be accessed when running on the render thread itself.
43 static RenderThread* Get(); 43 static RenderThread* Get();
44 44
45 RenderThread(); 45 RenderThread();
46 virtual ~RenderThread(); 46 virtual ~RenderThread();
47 47
48 virtual MessageLoop* GetMessageLoop() = 0; 48 virtual base::MessageLoop* GetMessageLoop() = 0;
49 virtual IPC::SyncChannel* GetChannel() = 0; 49 virtual IPC::SyncChannel* GetChannel() = 0;
50 virtual std::string GetLocale() = 0; 50 virtual std::string GetLocale() = 0;
51 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() = 0; 51 virtual IPC::SyncMessageFilter* GetSyncMessageFilter() = 0;
52 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() = 0; 52 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() = 0;
53 53
54 // Called to add or remove a listener for a particular message routing ID. 54 // Called to add or remove a listener for a particular message routing ID.
55 // These methods normally get delegated to a MessageRouter. 55 // These methods normally get delegated to a MessageRouter.
56 virtual void AddRoute(int32 routing_id, IPC::Listener* listener) = 0; 56 virtual void AddRoute(int32 routing_id, IPC::Listener* listener) = 0;
57 virtual void RemoveRoute(int32 routing_id) = 0; 57 virtual void RemoveRoute(int32 routing_id) = 0;
58 virtual int GenerateRoutingID() = 0; 58 virtual int GenerateRoutingID() = 0;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual void PreCacheFont(const LOGFONT& log_font) = 0; 117 virtual void PreCacheFont(const LOGFONT& log_font) = 0;
118 118
119 // Release cached font. 119 // Release cached font.
120 virtual void ReleaseCachedFonts() = 0; 120 virtual void ReleaseCachedFonts() = 0;
121 #endif 121 #endif
122 }; 122 };
123 123
124 } // namespace content 124 } // namespace content
125 125
126 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 126 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.h ('k') | content/public/test/test_browser_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698