Add ENABLE_MEDIA_ROUTER define to builds other than Android and iOS.
[chromium-blink-merge.git] / chrome / browser / task_management / providers / browser_process_task.h
blobc35c4cd9656e5430333287487e7503d200f69a2e
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 {
14 public:
15 BrowserProcessTask();
16 ~BrowserProcessTask() override;
18 // task_management::Task:
19 void Refresh(const base::TimeDelta& update_interval) override;
20 Type GetType() const override;
21 int GetChildProcessUniqueID() const override;
22 int64 GetSqliteMemoryUsed() const override;
23 int64 GetV8MemoryAllocated() const override;
24 int64 GetV8MemoryUsed() const override;
26 private:
27 int64 allocated_v8_memory_;
28 int64 used_v8_memory_;
29 int64 used_sqlite_memory_;
30 bool reports_v8_stats_;
32 DISALLOW_COPY_AND_ASSIGN(BrowserProcessTask);
35 } // namespace task_management
37 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_BROWSER_PROCESS_TASK_H_