Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / task_management / providers / browser_process_task_provider.h
blobf49f50fc1a403301487f6f847fd10e623cacd01c
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_PROVIDER_H_
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_BROWSER_PROCESS_TASK_PROVIDER_H_
8 #include "chrome/browser/task_management/providers/browser_process_task.h"
9 #include "chrome/browser/task_management/providers/task_provider.h"
11 namespace task_management {
13 // This provides the browser process task which lives as long as the browser
14 // lives.
15 class BrowserProcessTaskProvider : public TaskProvider {
16 public:
17 BrowserProcessTaskProvider();
18 ~BrowserProcessTaskProvider() override;
20 // task_management::TaskProvider:
21 Task* GetTaskOfUrlRequest(int origin_pid,
22 int child_id,
23 int route_id) override;
25 private:
26 // task_management::TaskProvider:
27 void StartUpdating() override;
28 void StopUpdating() override;
30 // This is the task that represents the one and only main browser process. It
31 // lives as long as the browser lives.
32 BrowserProcessTask browser_process_task_;
34 DISALLOW_COPY_AND_ASSIGN(BrowserProcessTaskProvider);
37 } // namespace task_management
39 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_BROWSER_PROCESS_TASK_PROVIDER_H_