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_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 bool StopWebRTCEventLog() override; | 155 bool StopWebRTCEventLog() override; |
156 void SetWebRtcLogMessageCallback( | 156 void SetWebRtcLogMessageCallback( |
157 base::Callback<void(const std::string&)> callback) override; | 157 base::Callback<void(const std::string&)> callback) override; |
158 void ClearWebRtcLogMessageCallback() override; | 158 void ClearWebRtcLogMessageCallback() override; |
159 WebRtcStopRtpDumpCallback StartRtpDump( | 159 WebRtcStopRtpDumpCallback StartRtpDump( |
160 bool incoming, | 160 bool incoming, |
161 bool outgoing, | 161 bool outgoing, |
162 const WebRtcRtpPacketCallback& packet_callback) override; | 162 const WebRtcRtpPacketCallback& packet_callback) override; |
163 #endif | 163 #endif |
164 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; | 164 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; |
165 shell::InterfaceProvider* GetRemoteInterfaces() override; | 165 service_manager::InterfaceProvider* GetRemoteInterfaces() override; |
166 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() | 166 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() |
167 override; | 167 override; |
168 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; | 168 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; |
169 bool IsProcessBackgrounded() const override; | 169 bool IsProcessBackgrounded() const override; |
170 void IncrementServiceWorkerRefCount() override; | 170 void IncrementServiceWorkerRefCount() override; |
171 void DecrementServiceWorkerRefCount() override; | 171 void DecrementServiceWorkerRefCount() override; |
172 void IncrementSharedWorkerRefCount() override; | 172 void IncrementSharedWorkerRefCount() override; |
173 void DecrementSharedWorkerRefCount() override; | 173 void DecrementSharedWorkerRefCount() override; |
174 void ForceReleaseWorkerRefCounts() override; | 174 void ForceReleaseWorkerRefCounts() override; |
175 bool IsWorkerRefCountDisabled() override; | 175 bool IsWorkerRefCountDisabled() override; |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 if (!weak_host) | 396 if (!weak_host) |
397 return; | 397 return; |
398 callback.Run(std::move(request)); | 398 callback.Run(std::move(request)); |
399 } | 399 } |
400 }; | 400 }; |
401 | 401 |
402 // Helper to bind an interface callback whose lifetime is limited to that of | 402 // Helper to bind an interface callback whose lifetime is limited to that of |
403 // the render process currently hosted by the RPHI. Callbacks added by this | 403 // the render process currently hosted by the RPHI. Callbacks added by this |
404 // method will never run beyond the next invocation of Cleanup(). | 404 // method will never run beyond the next invocation of Cleanup(). |
405 template <typename CallbackType> | 405 template <typename CallbackType> |
406 void AddUIThreadInterface(shell::InterfaceRegistry* registry, | 406 void AddUIThreadInterface(service_manager::InterfaceRegistry* registry, |
407 const CallbackType& callback) { | 407 const CallbackType& callback) { |
408 registry->AddInterface( | 408 registry->AddInterface( |
409 base::Bind(&InterfaceGetter<CallbackType>::GetInterfaceOnUIThread, | 409 base::Bind(&InterfaceGetter<CallbackType>::GetInterfaceOnUIThread, |
410 instance_weak_factory_->GetWeakPtr(), callback), | 410 instance_weak_factory_->GetWeakPtr(), callback), |
411 BrowserThread::GetTaskRunnerForThread(BrowserThread::UI)); | 411 BrowserThread::GetTaskRunnerForThread(BrowserThread::UI)); |
412 } | 412 } |
413 | 413 |
414 std::string child_token_; | 414 std::string child_token_; |
415 | 415 |
416 std::unique_ptr<ChildConnection> child_connection_; | 416 std::unique_ptr<ChildConnection> child_connection_; |
417 int connection_filter_id_ = | 417 int connection_filter_id_ = |
418 ServiceManagerConnection::kInvalidConnectionFilterId; | 418 ServiceManagerConnection::kInvalidConnectionFilterId; |
419 scoped_refptr<ConnectionFilterController> connection_filter_controller_; | 419 scoped_refptr<ConnectionFilterController> connection_filter_controller_; |
420 shell::mojom::ServicePtr test_service_; | 420 service_manager::mojom::ServicePtr test_service_; |
421 | 421 |
422 size_t service_worker_ref_count_; | 422 size_t service_worker_ref_count_; |
423 size_t shared_worker_ref_count_; | 423 size_t shared_worker_ref_count_; |
424 | 424 |
425 // Set in ForceReleaseWorkerRefCounts. When true, worker ref counts must no | 425 // Set in ForceReleaseWorkerRefCounts. When true, worker ref counts must no |
426 // longer be modified. | 426 // longer be modified. |
427 bool is_worker_ref_count_disabled_; | 427 bool is_worker_ref_count_disabled_; |
428 | 428 |
429 // The registered IPC listener objects. When this list is empty, we should | 429 // The registered IPC listener objects. When this list is empty, we should |
430 // delete ourselves. | 430 // delete ourselves. |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 instance_weak_factory_; | 585 instance_weak_factory_; |
586 | 586 |
587 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 587 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
588 | 588 |
589 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 589 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
590 }; | 590 }; |
591 | 591 |
592 } // namespace content | 592 } // namespace content |
593 | 593 |
594 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 594 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |