Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 1914143002: Experimental 'purging and suspending' backgrounded tabs behind the flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address on haraken's review Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698