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

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

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

Powered by Google App Engine
This is Rietveld 408576698