| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_TASK_MANAGER_CHILD_PROCESS_RESOURCE_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_CHILD_PROCESS_RESOURCE_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_TASK_MANAGER_CHILD_PROCESS_RESOURCE_PROVIDER_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_CHILD_PROCESS_RESOURCE_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class ChildProcessResource; | 24 class ChildProcessResource; |
| 25 | 25 |
| 26 class ChildProcessResourceProvider | 26 class ChildProcessResourceProvider |
| 27 : public ResourceProvider, | 27 : public ResourceProvider, |
| 28 public content::BrowserChildProcessObserver { | 28 public content::BrowserChildProcessObserver { |
| 29 public: | 29 public: |
| 30 explicit ChildProcessResourceProvider(TaskManager* task_manager); | 30 explicit ChildProcessResourceProvider(TaskManager* task_manager); |
| 31 | 31 |
| 32 virtual Resource* GetResource(int origin_pid, | 32 virtual Resource* GetResource(int origin_pid, |
| 33 int child_id, | 33 int child_id, |
| 34 int route_id) OVERRIDE; | 34 int route_id) override; |
| 35 virtual void StartUpdating() OVERRIDE; | 35 virtual void StartUpdating() override; |
| 36 virtual void StopUpdating() OVERRIDE; | 36 virtual void StopUpdating() override; |
| 37 | 37 |
| 38 // content::BrowserChildProcessObserver methods: | 38 // content::BrowserChildProcessObserver methods: |
| 39 virtual void BrowserChildProcessHostConnected( | 39 virtual void BrowserChildProcessHostConnected( |
| 40 const content::ChildProcessData& data) OVERRIDE; | 40 const content::ChildProcessData& data) override; |
| 41 virtual void BrowserChildProcessHostDisconnected( | 41 virtual void BrowserChildProcessHostDisconnected( |
| 42 const content::ChildProcessData& data) OVERRIDE; | 42 const content::ChildProcessData& data) override; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 virtual ~ChildProcessResourceProvider(); | 45 virtual ~ChildProcessResourceProvider(); |
| 46 | 46 |
| 47 // Retrieves information about the running ChildProcessHosts (performed in the | 47 // Retrieves information about the running ChildProcessHosts (performed in the |
| 48 // IO thread). | 48 // IO thread). |
| 49 virtual void RetrieveChildProcessData(); | 49 virtual void RetrieveChildProcessData(); |
| 50 | 50 |
| 51 // Notifies the UI thread that the ChildProcessHosts information have been | 51 // Notifies the UI thread that the ChildProcessHosts information have been |
| 52 // retrieved. | 52 // retrieved. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 74 | 74 |
| 75 // A scoped container for notification registries. | 75 // A scoped container for notification registries. |
| 76 content::NotificationRegistrar registrar_; | 76 content::NotificationRegistrar registrar_; |
| 77 | 77 |
| 78 DISALLOW_COPY_AND_ASSIGN(ChildProcessResourceProvider); | 78 DISALLOW_COPY_AND_ASSIGN(ChildProcessResourceProvider); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace task_manager | 81 } // namespace task_manager |
| 82 | 82 |
| 83 #endif // CHROME_BROWSER_TASK_MANAGER_CHILD_PROCESS_RESOURCE_PROVIDER_H_ | 83 #endif // CHROME_BROWSER_TASK_MANAGER_CHILD_PROCESS_RESOURCE_PROVIDER_H_ |
| OLD | NEW |