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

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

Issue 1749073002: Do V8 GC ASAP if system memory is pressured (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: send synchronous notification to worker thread Created 4 years, 8 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 const std::string& highlight_color); 518 const std::string& highlight_color);
519 #endif 519 #endif
520 void OnCreateNewSharedWorker( 520 void OnCreateNewSharedWorker(
521 const WorkerProcessMsg_CreateWorker_Params& params); 521 const WorkerProcessMsg_CreateWorker_Params& params);
522 bool RendererIsHidden() const; 522 bool RendererIsHidden() const;
523 void OnRendererHidden(); 523 void OnRendererHidden();
524 void OnRendererVisible(); 524 void OnRendererVisible();
525 525
526 void ReleaseFreeMemory(); 526 void ReleaseFreeMemory();
527 527
528 void OnSyncMemoryPressure(
529 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
530
528 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d(); 531 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d();
529 532
530 // These objects live solely on the render thread. 533 // These objects live solely on the render thread.
531 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; 534 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_;
532 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; 535 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_;
533 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; 536 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_;
534 scoped_ptr<scheduler::RendererScheduler> renderer_scheduler_; 537 scoped_ptr<scheduler::RendererScheduler> renderer_scheduler_;
535 scoped_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; 538 scoped_ptr<RendererBlinkPlatformImpl> blink_platform_impl_;
536 scoped_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_; 539 scoped_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_;
537 scoped_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_; 540 scoped_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 720 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
718 }; 721 };
719 722
720 #if defined(COMPILER_MSVC) 723 #if defined(COMPILER_MSVC)
721 #pragma warning(pop) 724 #pragma warning(pop)
722 #endif 725 #endif
723 726
724 } // namespace content 727 } // namespace content
725 728
726 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 729 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698