Chromium Code Reviews| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 148 void SetWebRtcLogMessageCallback( | 148 void SetWebRtcLogMessageCallback( |
| 149 base::Callback<void(const std::string&)> callback) override; | 149 base::Callback<void(const std::string&)> callback) override; |
| 150 WebRtcStopRtpDumpCallback StartRtpDump( | 150 WebRtcStopRtpDumpCallback StartRtpDump( |
| 151 bool incoming, | 151 bool incoming, |
| 152 bool outgoing, | 152 bool outgoing, |
| 153 const WebRtcRtpPacketCallback& packet_callback) override; | 153 const WebRtcRtpPacketCallback& packet_callback) override; |
| 154 #endif | 154 #endif |
| 155 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; | 155 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; |
| 156 void NotifyTimezoneChange(const std::string& timezone) override; | 156 void NotifyTimezoneChange(const std::string& timezone) override; |
| 157 ServiceRegistry* GetServiceRegistry() override; | 157 ServiceRegistry* GetServiceRegistry() override; |
| 158 scoped_ptr<base::SharedPersistentMemoryAllocator> ExtractMetricsAllocator() | |
| 159 override; | |
| 158 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; | 160 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; |
| 159 bool SubscribeUniformEnabled() const override; | 161 bool SubscribeUniformEnabled() const override; |
| 160 void OnAddSubscription(unsigned int target) override; | 162 void OnAddSubscription(unsigned int target) override; |
| 161 void OnRemoveSubscription(unsigned int target) override; | 163 void OnRemoveSubscription(unsigned int target) override; |
| 162 void SendUpdateValueState( | 164 void SendUpdateValueState( |
| 163 unsigned int target, const gpu::ValueState& state) override; | 165 unsigned int target, const gpu::ValueState& state) override; |
| 164 #if defined(ENABLE_BROWSER_CDMS) | 166 #if defined(ENABLE_BROWSER_CDMS) |
| 165 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, | 167 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, |
| 166 int cdm_id) const override; | 168 int cdm_id) const override; |
| 167 #endif | 169 #endif |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 498 SubscriptionSet subscription_set_; | 500 SubscriptionSet subscription_set_; |
| 499 | 501 |
| 500 // Maintains ValueStates which are not currently subscribed too so we can | 502 // Maintains ValueStates which are not currently subscribed too so we can |
| 501 // pass them to the GpuService if a Valuebuffer ever subscribes to the | 503 // pass them to the GpuService if a Valuebuffer ever subscribes to the |
| 502 // respective subscription target | 504 // respective subscription target |
| 503 scoped_refptr<gpu::ValueStateMap> pending_valuebuffer_state_; | 505 scoped_refptr<gpu::ValueStateMap> pending_valuebuffer_state_; |
| 504 | 506 |
| 505 // Whether or not the CHROMIUM_subscribe_uniform WebGL extension is enabled | 507 // Whether or not the CHROMIUM_subscribe_uniform WebGL extension is enabled |
| 506 bool subscribe_uniform_enabled_; | 508 bool subscribe_uniform_enabled_; |
| 507 | 509 |
| 510 scoped_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_; | |
|
Alexei Svitkine (slow)
2016/03/29 17:51:24
Needs a comment.
bcwhite
2016/03/30 21:25:55
Done.
| |
| 511 | |
| 508 bool channel_connected_; | 512 bool channel_connected_; |
| 509 bool sent_render_process_ready_; | 513 bool sent_render_process_ready_; |
| 510 | 514 |
| 511 #if defined(OS_ANDROID) | 515 #if defined(OS_ANDROID) |
| 512 // UI thread is the source of sync IPCs and all shutdown signals. | 516 // UI thread is the source of sync IPCs and all shutdown signals. |
| 513 // Therefore a proper shutdown event to unblock the UI thread is not | 517 // Therefore a proper shutdown event to unblock the UI thread is not |
| 514 // possible without massive refactoring shutdown code. | 518 // possible without massive refactoring shutdown code. |
| 515 // Luckily Android never performs a clean shutdown. So explicitly | 519 // Luckily Android never performs a clean shutdown. So explicitly |
| 516 // ignore this problem. | 520 // ignore this problem. |
| 517 base::WaitableEvent never_signaled_; | 521 base::WaitableEvent never_signaled_; |
| 518 #endif | 522 #endif |
| 519 | 523 |
| 520 std::string mojo_channel_token_; | 524 std::string mojo_channel_token_; |
| 521 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 525 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
| 522 | 526 |
| 523 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 527 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 524 | 528 |
| 525 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 529 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 526 }; | 530 }; |
| 527 | 531 |
| 528 } // namespace content | 532 } // namespace content |
| 529 | 533 |
| 530 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 534 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |