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

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

Issue 1949153003: Do V8 GC ASAP if system memory is pressured[reland] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « base/memory/memory_pressure_listener.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 const std::string& highlight_color); 508 const std::string& highlight_color);
509 #endif 509 #endif
510 void OnCreateNewSharedWorker( 510 void OnCreateNewSharedWorker(
511 const WorkerProcessMsg_CreateWorker_Params& params); 511 const WorkerProcessMsg_CreateWorker_Params& params);
512 bool RendererIsHidden() const; 512 bool RendererIsHidden() const;
513 void OnRendererHidden(); 513 void OnRendererHidden();
514 void OnRendererVisible(); 514 void OnRendererVisible();
515 515
516 void ReleaseFreeMemory(); 516 void ReleaseFreeMemory();
517 517
518 void OnSyncMemoryPressure(
519 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
520
518 // These objects live solely on the render thread. 521 // These objects live solely on the render thread.
519 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_; 522 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_;
520 std::unique_ptr<DomStorageDispatcher> dom_storage_dispatcher_; 523 std::unique_ptr<DomStorageDispatcher> dom_storage_dispatcher_;
521 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; 524 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_;
522 std::unique_ptr<scheduler::RendererScheduler> renderer_scheduler_; 525 std::unique_ptr<scheduler::RendererScheduler> renderer_scheduler_;
523 std::unique_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; 526 std::unique_ptr<RendererBlinkPlatformImpl> blink_platform_impl_;
524 std::unique_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_; 527 std::unique_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_;
525 std::unique_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_; 528 std::unique_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_;
526 std::unique_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_; 529 std::unique_ptr<EmbeddedWorkerDispatcher> embedded_worker_dispatcher_;
527 530
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 705 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
703 }; 706 };
704 707
705 #if defined(COMPILER_MSVC) 708 #if defined(COMPILER_MSVC)
706 #pragma warning(pop) 709 #pragma warning(pop)
707 #endif 710 #endif
708 711
709 } // namespace content 712 } // namespace content
710 713
711 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 714 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « base/memory/memory_pressure_listener.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698