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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 2387603003: Resume a backgrounded renderer that was purged and suspended (Closed)
Patch Set: Use constexpr base::TimeDelta Created 4 years, 2 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 std::unique_ptr<base::MessageLoop> main_message_loop, 477 std::unique_ptr<base::MessageLoop> main_message_loop,
478 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler); 478 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler);
479 479
480 private: 480 private:
481 // IPC::Listener 481 // IPC::Listener
482 void OnChannelError() override; 482 void OnChannelError() override;
483 483
484 // ChildThread 484 // ChildThread
485 bool OnControlMessageReceived(const IPC::Message& msg) override; 485 bool OnControlMessageReceived(const IPC::Message& msg) override;
486 void OnProcessBackgrounded(bool backgrounded) override; 486 void OnProcessBackgrounded(bool backgrounded) override;
487 void OnProcessResume() override;
487 void OnProcessPurgeAndSuspend() override; 488 void OnProcessPurgeAndSuspend() override;
488 void RecordAction(const base::UserMetricsAction& action) override; 489 void RecordAction(const base::UserMetricsAction& action) override;
489 void RecordComputedAction(const std::string& action) override; 490 void RecordComputedAction(const std::string& action) override;
490 491
491 // GpuChannelHostFactory implementation: 492 // GpuChannelHostFactory implementation:
492 bool IsMainThread() override; 493 bool IsMainThread() override;
493 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; 494 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override;
494 std::unique_ptr<base::SharedMemory> AllocateSharedMemory( 495 std::unique_ptr<base::SharedMemory> AllocateSharedMemory(
495 size_t size) override; 496 size_t size) override;
496 497
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 743 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
743 }; 744 };
744 745
745 #if defined(COMPILER_MSVC) 746 #if defined(COMPILER_MSVC)
746 #pragma warning(pop) 747 #pragma warning(pop)
747 #endif 748 #endif
748 749
749 } // namespace content 750 } // namespace content
750 751
751 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 752 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698