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

Side by Side Diff: content/renderer/render_thread_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: 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_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 const InProcessChildThreadParams& params, 460 const InProcessChildThreadParams& params,
461 std::unique_ptr<scheduler::RendererScheduler> scheduler, 461 std::unique_ptr<scheduler::RendererScheduler> scheduler,
462 scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); 462 scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue);
463 RenderThreadImpl(std::unique_ptr<base::MessageLoop> main_message_loop, 463 RenderThreadImpl(std::unique_ptr<base::MessageLoop> main_message_loop,
464 std::unique_ptr<scheduler::RendererScheduler> scheduler); 464 std::unique_ptr<scheduler::RendererScheduler> scheduler);
465 465
466 private: 466 private:
467 // ChildThread 467 // ChildThread
468 bool OnControlMessageReceived(const IPC::Message& msg) override; 468 bool OnControlMessageReceived(const IPC::Message& msg) override;
469 void OnProcessBackgrounded(bool backgrounded) override; 469 void OnProcessBackgrounded(bool backgrounded) override;
470 void OnProcessPurgeAndSuspend() override;
470 void RecordAction(const base::UserMetricsAction& action) override; 471 void RecordAction(const base::UserMetricsAction& action) override;
471 void RecordComputedAction(const std::string& action) override; 472 void RecordComputedAction(const std::string& action) override;
472 473
473 // GpuChannelHostFactory implementation: 474 // GpuChannelHostFactory implementation:
474 bool IsMainThread() override; 475 bool IsMainThread() override;
475 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; 476 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override;
476 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( 477 std::unique_ptr<base::SharedMemory> AllocateSharedMemory(
477 size_t size) override; 478 size_t size) override;
478 479
479 void Init(scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); 480 void Init(scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue);
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 710 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
710 }; 711 };
711 712
712 #if defined(COMPILER_MSVC) 713 #if defined(COMPILER_MSVC)
713 #pragma warning(pop) 714 #pragma warning(pop)
714 #endif 715 #endif
715 716
716 } // namespace content 717 } // namespace content
717 718
718 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 719 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698