1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_BROWSER_PROCESS_TASK_H_
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_BROWSER_PROCESS_TASK_H_
8 #include "chrome/browser/task_management/providers/task.h"
10 namespace task_management
{
12 // Defines the task that represents the one and only browser main process.
13 class BrowserProcessTask
: public Task
{
16 ~BrowserProcessTask() override
;
18 // task_management::Task:
19 void Refresh(const base::TimeDelta
& update_interval
,
20 int64 refresh_flags
) override
;
21 Type
GetType() const override
;
22 int GetChildProcessUniqueID() const override
;
23 int64
GetSqliteMemoryUsed() const override
;
24 int64
GetV8MemoryAllocated() const override
;
25 int64
GetV8MemoryUsed() const override
;
28 int64 allocated_v8_memory_
;
29 int64 used_v8_memory_
;
30 int64 used_sqlite_memory_
;
31 bool reports_v8_stats_
;
33 DISALLOW_COPY_AND_ASSIGN(BrowserProcessTask
);
36 } // namespace task_management
38 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_BROWSER_PROCESS_TASK_H_