| Index: gin/v8_platform.cc
|
| diff --git a/gin/v8_platform.cc b/gin/v8_platform.cc
|
| index 276dd77c9d64f2dd941b9613839f1941a041d326..e74092eadc711b114cb0e05d1074fdd88280c5db 100644
|
| --- a/gin/v8_platform.cc
|
| +++ b/gin/v8_platform.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/bind.h"
|
| #include "base/location.h"
|
| +#include "base/memory/memory_coordinator_proxy.h"
|
| #include "base/sys_info.h"
|
| #include "base/threading/worker_pool.h"
|
| #include "base/trace_event/trace_event.h"
|
| @@ -263,4 +264,17 @@ void V8Platform::RemoveTraceStateObserver(
|
| g_trace_state_dispatcher.Get().RemoveObserver(observer);
|
| }
|
|
|
| +bool V8Platform::IsGlobalMemoryBudgetAvailable() {
|
| + return base::MemoryCoordinatorProxy::GetInstance()->IsEnabled();
|
| +}
|
| +
|
| +int64_t V8Platform::GetGlobalMemoryBudget() {
|
| + return base::MemoryCoordinatorProxy::GetInstance()->GetGlobalBudget();
|
| +}
|
| +
|
| +void V8Platform::SetGlobalMemoryBudgetUpdateInterval(uint32_t interval) {
|
| + base::MemoryCoordinatorProxy::GetInstance()->SetGlobalBudgetUpdateInterval(
|
| + interval);
|
| +}
|
| +
|
| } // namespace gin
|
|
|