OLD | NEW |
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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 namespace cc { | 25 namespace cc { |
26 class SharedBitmapManager; | 26 class SharedBitmapManager; |
27 } | 27 } |
28 | 28 |
29 namespace IPC { | 29 namespace IPC { |
30 class MessageFilter; | 30 class MessageFilter; |
31 class SyncChannel; | 31 class SyncChannel; |
32 class SyncMessageFilter; | 32 class SyncMessageFilter; |
33 } | 33 } |
34 | 34 |
| 35 namespace shell { |
| 36 class InterfaceRegistry; |
| 37 class InterfaceProvider; |
| 38 } |
| 39 |
35 namespace v8 { | 40 namespace v8 { |
36 class Extension; | 41 class Extension; |
37 } | 42 } |
38 | 43 |
39 namespace content { | 44 namespace content { |
40 | 45 |
41 class RenderThreadObserver; | 46 class RenderThreadObserver; |
42 class ResourceDispatcherDelegate; | 47 class ResourceDispatcherDelegate; |
43 class ServiceRegistry; | |
44 | 48 |
45 class CONTENT_EXPORT RenderThread : virtual public ChildThread { | 49 class CONTENT_EXPORT RenderThread : virtual public ChildThread { |
46 public: | 50 public: |
47 // Returns the one render thread for this process. Note that this can only | 51 // Returns the one render thread for this process. Note that this can only |
48 // be accessed when running on the render thread itself. | 52 // be accessed when running on the render thread itself. |
49 static RenderThread* Get(); | 53 static RenderThread* Get(); |
50 | 54 |
51 RenderThread(); | 55 RenderThread(); |
52 ~RenderThread() override; | 56 ~RenderThread() override; |
53 | 57 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 virtual int PostTaskToAllWebWorkers(const base::Closure& closure) = 0; | 106 virtual int PostTaskToAllWebWorkers(const base::Closure& closure) = 0; |
103 | 107 |
104 // Resolve the proxy servers to use for a given url. On success true is | 108 // Resolve the proxy servers to use for a given url. On success true is |
105 // returned and |proxy_list| is set to a PAC string containing a list of | 109 // returned and |proxy_list| is set to a PAC string containing a list of |
106 // proxy servers. | 110 // proxy servers. |
107 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) = 0; | 111 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) = 0; |
108 | 112 |
109 // Gets the shutdown event for the process. | 113 // Gets the shutdown event for the process. |
110 virtual base::WaitableEvent* GetShutdownEvent() = 0; | 114 virtual base::WaitableEvent* GetShutdownEvent() = 0; |
111 | 115 |
112 // Returns the ServiceRegistry for this thread. Never returns nullptr. | 116 // Returns the InterfaceRegistry that this process uses to expose interfaces |
113 virtual ServiceRegistry* GetServiceRegistry() = 0; | 117 // to the browser. |
| 118 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0; |
| 119 |
| 120 // Returns the InterfaceProvider that this process can use to bind |
| 121 // interfaces exposed to it by the browser. |
| 122 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; |
114 }; | 123 }; |
115 | 124 |
116 } // namespace content | 125 } // namespace content |
117 | 126 |
118 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 127 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |