blob: 53ef16c7555ecb029b796025e1a7b4c4892852e2 [file] [log] [blame]
// 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_MANAGER_PROVIDERS_BROWSER_PROCESS_TASK_H_
#define CHROME_BROWSER_TASK_MANAGER_PROVIDERS_BROWSER_PROCESS_TASK_H_
#include <stdint.h>
#include "base/macros.h"
#include "chrome/browser/task_manager/providers/task.h"
namespace task_manager {
// Defines the task that represents the one and only browser main process.
class BrowserProcessTask : public Task {
public:
BrowserProcessTask();
~BrowserProcessTask() override;
// task_manager::Task:
bool IsKillable() override;
void Kill() override;
void Refresh(const base::TimeDelta& update_interval,
int64_t refresh_flags) override;
Type GetType() const override;
int GetChildProcessUniqueID() const override;
int64_t GetSqliteMemoryUsed() const override;
private:
int64_t used_sqlite_memory_;
DISALLOW_COPY_AND_ASSIGN(BrowserProcessTask);
};
} // namespace task_manager
#endif // CHROME_BROWSER_TASK_MANAGER_PROVIDERS_BROWSER_PROCESS_TASK_H_