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_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <string> | 10 #include <string> |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 #endif | 219 #endif |
220 | 220 |
221 MessagePortMessageFilter* message_port_message_filter() const { | 221 MessagePortMessageFilter* message_port_message_filter() const { |
222 return message_port_message_filter_; | 222 return message_port_message_filter_; |
223 } | 223 } |
224 | 224 |
225 void SetIsGuestForTesting(bool is_guest) { | 225 void SetIsGuestForTesting(bool is_guest) { |
226 is_guest_ = is_guest; | 226 is_guest_ = is_guest; |
227 } | 227 } |
228 | 228 |
| 229 // Called when the existence of the other renderer process which is connected |
| 230 // to the Worker in this renderer process has changed. |
| 231 // It is only called when "enable-embedded-shared-worker" flag is set. |
| 232 void IncrementWorkerRefCount(); |
| 233 void DecrementWorkerRefCount(); |
| 234 |
229 protected: | 235 protected: |
230 // A proxy for our IPC::Channel that lives on the IO thread (see | 236 // A proxy for our IPC::Channel that lives on the IO thread (see |
231 // browser_process.h) | 237 // browser_process.h) |
232 scoped_ptr<IPC::ChannelProxy> channel_; | 238 scoped_ptr<IPC::ChannelProxy> channel_; |
233 | 239 |
234 // True if fast shutdown has been performed on this RPH. | 240 // True if fast shutdown has been performed on this RPH. |
235 bool fast_shutdown_started_; | 241 bool fast_shutdown_started_; |
236 | 242 |
237 // True if we've posted a DeleteTask and will be deleted soon. | 243 // True if we've posted a DeleteTask and will be deleted soon. |
238 bool deleting_soon_; | 244 bool deleting_soon_; |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 #if defined(ENABLE_WEBRTC) | 414 #if defined(ENABLE_WEBRTC) |
409 base::Callback<void(const std::string&)> webrtc_log_message_callback_; | 415 base::Callback<void(const std::string&)> webrtc_log_message_callback_; |
410 #endif | 416 #endif |
411 | 417 |
412 // Lives on the browser's ChildThread. | 418 // Lives on the browser's ChildThread. |
413 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 419 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
414 | 420 |
415 // Message filter and dispatcher for screen orientation. | 421 // Message filter and dispatcher for screen orientation. |
416 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_; | 422 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_; |
417 | 423 |
| 424 int worker_ref_count_; |
| 425 |
418 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 426 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
419 }; | 427 }; |
420 | 428 |
421 } // namespace content | 429 } // namespace content |
422 | 430 |
423 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 431 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |