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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() | 160 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() |
161 override; | 161 override; |
162 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; | 162 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; |
163 #if defined(ENABLE_BROWSER_CDMS) | 163 #if defined(ENABLE_BROWSER_CDMS) |
164 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, | 164 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, |
165 int cdm_id) const override; | 165 int cdm_id) const override; |
166 #endif | 166 #endif |
167 bool IsProcessBackgrounded() const override; | 167 bool IsProcessBackgrounded() const override; |
168 void IncrementWorkerRefCount() override; | 168 void IncrementWorkerRefCount() override; |
169 void DecrementWorkerRefCount() override; | 169 void DecrementWorkerRefCount() override; |
| 170 void PurgeAndSuspend() override; |
170 | 171 |
171 // IPC::Sender via RenderProcessHost. | 172 // IPC::Sender via RenderProcessHost. |
172 bool Send(IPC::Message* msg) override; | 173 bool Send(IPC::Message* msg) override; |
173 | 174 |
174 // IPC::Listener via RenderProcessHost. | 175 // IPC::Listener via RenderProcessHost. |
175 bool OnMessageReceived(const IPC::Message& msg) override; | 176 bool OnMessageReceived(const IPC::Message& msg) override; |
176 void OnChannelConnected(int32_t peer_pid) override; | 177 void OnChannelConnected(int32_t peer_pid) override; |
177 void OnChannelError() override; | 178 void OnChannelError() override; |
178 void OnBadMessageReceived(const IPC::Message& message) override; | 179 void OnBadMessageReceived(const IPC::Message& message) override; |
179 | 180 |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 514 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
514 | 515 |
515 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 516 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
516 | 517 |
517 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 518 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
518 }; | 519 }; |
519 | 520 |
520 } // namespace content | 521 } // namespace content |
521 | 522 |
522 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 523 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |