| Index: content/renderer/render_thread_impl.h
|
| diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
|
| index a5eba9781cef3a369d13b00a2e65ff944d42bdeb..db027a58ab029f0b3f3e2ac37aa2f5d2f1776275 100644
|
| --- a/content/renderer/render_thread_impl.h
|
| +++ b/content/renderer/render_thread_impl.h
|
| @@ -22,6 +22,7 @@
|
| #include "base/threading/thread_checker.h"
|
| #include "base/timer/timer.h"
|
| #include "build/build_config.h"
|
| +#include "content/child/child_discardable_shared_memory_manager.h"
|
| #include "content/child/child_thread_impl.h"
|
| #include "content/child/memory/child_memory_coordinator_impl.h"
|
| #include "content/common/associated_interface_registry_impl.h"
|
| @@ -42,6 +43,7 @@
|
| #include "net/base/network_change_notifier.h"
|
| #include "third_party/WebKit/public/platform/WebConnectionType.h"
|
| #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h"
|
| +#include "third_party/WebKit/public/web/WebMemoryStatistics.h"
|
| #include "ui/gfx/native_widget_types.h"
|
|
|
| #if defined(OS_MACOSX)
|
| @@ -485,6 +487,7 @@ class CONTENT_EXPORT RenderThreadImpl
|
| bool OnControlMessageReceived(const IPC::Message& msg) override;
|
| void OnProcessBackgrounded(bool backgrounded) override;
|
| void OnProcessPurgeAndSuspend() override;
|
| +
|
| void RecordAction(const base::UserMetricsAction& action) override;
|
| void RecordComputedAction(const std::string& action) override;
|
|
|
| @@ -539,6 +542,8 @@ class CONTENT_EXPORT RenderThreadImpl
|
| void OnRendererHidden();
|
| void OnRendererVisible();
|
|
|
| + void RecordPurgeAndSuspendMetrics() const;
|
| +
|
| void ReleaseFreeMemory();
|
|
|
| void OnSyncMemoryPressure(
|
| @@ -737,6 +742,7 @@ class CONTENT_EXPORT RenderThreadImpl
|
| mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_;
|
| mojom::RenderMessageFilterAssociatedPtr render_message_filter_;
|
|
|
| + base::CancelableClosure record_purge_suspend_metric_closure_;
|
| bool is_renderer_suspended_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
|
|
|