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