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 |
| 11 #include "base/callback_forward.h" |
11 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
12 #include "base/macros.h" | 13 #include "base/macros.h" |
13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
14 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
15 #include "components/metrics/metrics_provider.h" | 16 #include "components/metrics/metrics_provider.h" |
16 #include "content/public/browser/browser_child_process_observer.h" | 17 #include "content/public/browser/browser_child_process_observer.h" |
17 | 18 |
18 namespace base { | 19 namespace base { |
19 class FilePath; | 20 class FilePath; |
20 } | 21 } |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 103 |
103 // Buffer of child process notifications for quick access. | 104 // Buffer of child process notifications for quick access. |
104 std::map<base::string16, ChildProcessStats> child_process_stats_buffer_; | 105 std::map<base::string16, ChildProcessStats> child_process_stats_buffer_; |
105 | 106 |
106 base::WeakPtrFactory<PluginMetricsProvider> weak_ptr_factory_; | 107 base::WeakPtrFactory<PluginMetricsProvider> weak_ptr_factory_; |
107 | 108 |
108 DISALLOW_COPY_AND_ASSIGN(PluginMetricsProvider); | 109 DISALLOW_COPY_AND_ASSIGN(PluginMetricsProvider); |
109 }; | 110 }; |
110 | 111 |
111 #endif // CHROME_BROWSER_METRICS_PLUGIN_METRICS_PROVIDER_H_ | 112 #endif // CHROME_BROWSER_METRICS_PLUGIN_METRICS_PROVIDER_H_ |
OLD | NEW |