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_BROWSER_RENDER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
10 #include "base/process.h" | 10 #include "base/process.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) = 0; | 124 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) = 0; |
125 | 125 |
126 // Returns the user browser context associated with this renderer process. | 126 // Returns the user browser context associated with this renderer process. |
127 virtual content::BrowserContext* GetBrowserContext() const = 0; | 127 virtual content::BrowserContext* GetBrowserContext() const = 0; |
128 | 128 |
129 // Returns the unique ID for this child process. This can be used later in | 129 // Returns the unique ID for this child process. This can be used later in |
130 // a call to FromID() to get back to this object (this is used to avoid | 130 // a call to FromID() to get back to this object (this is used to avoid |
131 // sending non-threadsafe pointers to other threads). | 131 // sending non-threadsafe pointers to other threads). |
132 // | 132 // |
133 // This ID will be unique for all child processes, including workers, plugins, | 133 // This ID will be unique for all child processes, including workers, plugins, |
134 // etc. It is generated by ChildProcessInfo. | 134 // etc. |
135 virtual int GetID() const = 0; | 135 virtual int GetID() const = 0; |
136 | 136 |
137 // Returns the render widget host for the routing id passed in. | 137 // Returns the render widget host for the routing id passed in. |
138 virtual RenderWidgetHost* GetRenderWidgetHostByID(int routing_id) = 0; | 138 virtual RenderWidgetHost* GetRenderWidgetHostByID(int routing_id) = 0; |
139 | 139 |
140 // Returns true iff channel_ has been set to non-NULL. Use this for checking | 140 // Returns true iff channel_ has been set to non-NULL. Use this for checking |
141 // if there is connection or not. Virtual for mocking out for tests. | 141 // if there is connection or not. Virtual for mocking out for tests. |
142 virtual bool HasConnection() const = 0; | 142 virtual bool HasConnection() const = 0; |
143 | 143 |
144 // Call this to allow queueing of IPC messages that are sent before the | 144 // Call this to allow queueing of IPC messages that are sent before the |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 236 |
237 // Returns the current max number of renderer processes used by the content | 237 // Returns the current max number of renderer processes used by the content |
238 // module. | 238 // module. |
239 static size_t GetMaxRendererProcessCount(); | 239 static size_t GetMaxRendererProcessCount(); |
240 }; | 240 }; |
241 | 241 |
242 } // namespace content. | 242 } // namespace content. |
243 | 243 |
244 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 244 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
245 | 245 |
OLD | NEW |