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

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: based on CL 1813963002 Created 4 years, 9 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 14 matching lines...) Expand all
25 #include "content/child/child_thread_impl.h" 25 #include "content/child/child_thread_impl.h"
26 #include "content/common/content_export.h" 26 #include "content/common/content_export.h"
27 #include "content/common/frame_replication_state.h" 27 #include "content/common/frame_replication_state.h"
28 #include "content/common/gpu/client/gpu_channel_host.h" 28 #include "content/common/gpu/client/gpu_channel_host.h"
29 #include "content/common/storage_partition_service.mojom.h" 29 #include "content/common/storage_partition_service.mojom.h"
30 #include "content/public/renderer/render_thread.h" 30 #include "content/public/renderer/render_thread.h"
31 #include "content/renderer/gpu/compositor_dependencies.h" 31 #include "content/renderer/gpu/compositor_dependencies.h"
32 #include "net/base/network_change_notifier.h" 32 #include "net/base/network_change_notifier.h"
33 #include "third_party/WebKit/public/platform/WebConnectionType.h" 33 #include "third_party/WebKit/public/platform/WebConnectionType.h"
34 #include "ui/gfx/native_widget_types.h" 34 #include "ui/gfx/native_widget_types.h"
35 #include "v8/include/v8.h"
esprehn 2016/03/25 09:20:35 do this in the .cc file, it doesn't seem used here
hong.zheng 2016/04/01 09:22:34 Done.
35 36
36 #if defined(OS_MACOSX) 37 #if defined(OS_MACOSX)
37 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" 38 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h"
38 #endif 39 #endif
39 40
40 class GrContext; 41 class GrContext;
41 class SkBitmap; 42 class SkBitmap;
42 struct FrameMsg_NewFrame_Params; 43 struct FrameMsg_NewFrame_Params;
43 struct ViewMsg_New_Params; 44 struct ViewMsg_New_Params;
44 struct ViewMsg_UpdateScrollbarTheme_Params; 45 struct ViewMsg_UpdateScrollbarTheme_Params;
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 const std::string& highlight_color); 514 const std::string& highlight_color);
514 #endif 515 #endif
515 void OnCreateNewSharedWorker( 516 void OnCreateNewSharedWorker(
516 const WorkerProcessMsg_CreateWorker_Params& params); 517 const WorkerProcessMsg_CreateWorker_Params& params);
517 bool RendererIsHidden() const; 518 bool RendererIsHidden() const;
518 void OnRendererHidden(); 519 void OnRendererHidden();
519 void OnRendererVisible(); 520 void OnRendererVisible();
520 521
521 void ReleaseFreeMemory(); 522 void ReleaseFreeMemory();
522 523
524 void OnSyncMemoryPressure(
525 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
526
523 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d(); 527 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateOffscreenContext3d();
524 528
525 // These objects live solely on the render thread. 529 // These objects live solely on the render thread.
526 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; 530 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_;
527 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_; 531 scoped_ptr<DomStorageDispatcher> dom_storage_dispatcher_;
528 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; 532 scoped_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_;
529 scoped_ptr<scheduler::RendererScheduler> renderer_scheduler_; 533 scoped_ptr<scheduler::RendererScheduler> renderer_scheduler_;
530 scoped_ptr<RendererBlinkPlatformImpl> blink_platform_impl_; 534 scoped_ptr<RendererBlinkPlatformImpl> blink_platform_impl_;
531 scoped_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_; 535 scoped_ptr<ResourceDispatchThrottler> resource_dispatch_throttler_;
532 scoped_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_; 536 scoped_ptr<CacheStorageDispatcher> main_thread_cache_storage_dispatcher_;
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 715 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
712 }; 716 };
713 717
714 #if defined(COMPILER_MSVC) 718 #if defined(COMPILER_MSVC)
715 #pragma warning(pop) 719 #pragma warning(pop)
716 #endif 720 #endif
717 721
718 } // namespace content 722 } // namespace content
719 723
720 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 724 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698