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

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

Issue 2624063002: Stop suspending renderer and changing purge interval to 20min (Closed)
Patch Set: Fixed unit_tests failure. Created 3 years, 11 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 // ChildThread 497 // ChildThread
498 bool OnControlMessageReceived(const IPC::Message& msg) override; 498 bool OnControlMessageReceived(const IPC::Message& msg) override;
499 void OnProcessBackgrounded(bool backgrounded) override; 499 void OnProcessBackgrounded(bool backgrounded) override;
500 void OnProcessResume() override; 500 void OnProcessResume() override;
501 void OnProcessPurgeAndSuspend() override; 501 void OnProcessPurgeAndSuspend() override;
502 void RecordAction(const base::UserMetricsAction& action) override; 502 void RecordAction(const base::UserMetricsAction& action) override;
503 void RecordComputedAction(const std::string& action) override; 503 void RecordComputedAction(const std::string& action) override;
504 504
505 bool IsMainThread(); 505 bool IsMainThread();
506 506
507 // Purges memory and suspends the renderer.
508 void SuspendRenderer();
509
510 // Resumes the renderer if it is suspended.
511 void ResumeRenderer();
512
513 // base::MemoryCoordinatorClient implementation: 507 // base::MemoryCoordinatorClient implementation:
514 void OnMemoryStateChange(base::MemoryState state) override; 508 void OnMemoryStateChange(base::MemoryState state) override;
515 509
516 void ClearMemory(); 510 void ClearMemory();
517 511
518 void Init( 512 void Init(
519 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); 513 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue);
520 514
521 void InitializeCompositorThread(); 515 void InitializeCompositorThread();
522 516
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 753 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
760 }; 754 };
761 755
762 #if defined(COMPILER_MSVC) 756 #if defined(COMPILER_MSVC)
763 #pragma warning(pop) 757 #pragma warning(pop)
764 #endif 758 #endif
765 759
766 } // namespace content 760 } // namespace content
767 761
768 #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