| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_METRICS_PLUGIN_METRICS_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_METRICS_PLUGIN_METRICS_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_METRICS_PLUGIN_METRICS_PROVIDER_H_ | 6 #define CHROME_BROWSER_METRICS_PLUGIN_METRICS_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 // If a delayed RecordCurrnetState task exists then cancels it, calls | 86 // If a delayed RecordCurrnetState task exists then cancels it, calls |
| 87 // RecordCurrentState immediately and returns true. Otherwise returns false. | 87 // RecordCurrentState immediately and returns true. Otherwise returns false. |
| 88 bool RecordCurrentStateIfPending(); | 88 bool RecordCurrentStateIfPending(); |
| 89 | 89 |
| 90 // content::BrowserChildProcessObserver: | 90 // content::BrowserChildProcessObserver: |
| 91 void BrowserChildProcessHostConnected( | 91 void BrowserChildProcessHostConnected( |
| 92 const content::ChildProcessData& data) override; | 92 const content::ChildProcessData& data) override; |
| 93 void BrowserChildProcessCrashed(const content::ChildProcessData& data, | 93 void BrowserChildProcessCrashed(const content::ChildProcessData& data, |
| 94 int exit_code) override; | 94 int exit_code) override; |
| 95 void BrowserChildProcessInstanceCreated( | |
| 96 const content::ChildProcessData& data) override; | |
| 97 void BrowserChildProcessKilled(const content::ChildProcessData& data, | 95 void BrowserChildProcessKilled(const content::ChildProcessData& data, |
| 98 int exit_code) override; | 96 int exit_code) override; |
| 99 | 97 |
| 100 PrefService* local_state_; | 98 PrefService* local_state_; |
| 101 | 99 |
| 102 // The list of plugins which was retrieved on the file thread. | 100 // The list of plugins which was retrieved on the file thread. |
| 103 std::vector<content::WebPluginInfo> plugins_; | 101 std::vector<content::WebPluginInfo> plugins_; |
| 104 | 102 |
| 105 // Buffer of child process notifications for quick access. | 103 // Buffer of child process notifications for quick access. |
| 106 std::map<base::string16, ChildProcessStats> child_process_stats_buffer_; | 104 std::map<base::string16, ChildProcessStats> child_process_stats_buffer_; |
| 107 | 105 |
| 108 base::WeakPtrFactory<PluginMetricsProvider> weak_ptr_factory_; | 106 base::WeakPtrFactory<PluginMetricsProvider> weak_ptr_factory_; |
| 109 | 107 |
| 110 DISALLOW_COPY_AND_ASSIGN(PluginMetricsProvider); | 108 DISALLOW_COPY_AND_ASSIGN(PluginMetricsProvider); |
| 111 }; | 109 }; |
| 112 | 110 |
| 113 #endif // CHROME_BROWSER_METRICS_PLUGIN_METRICS_PROVIDER_H_ | 111 #endif // CHROME_BROWSER_METRICS_PLUGIN_METRICS_PROVIDER_H_ |
| OLD | NEW |