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

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

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

Powered by Google App Engine
This is Rietveld 408576698