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

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

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

Powered by Google App Engine
This is Rietveld 408576698