| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_DATA_USE_MEASUREMENT_CHROME_DATA_USE_ASCRIBER_H_ | 5 #ifndef CHROME_BROWSER_DATA_USE_MEASUREMENT_CHROME_DATA_USE_ASCRIBER_H_ |
| 6 #define CHROME_BROWSER_DATA_USE_MEASUREMENT_CHROME_DATA_USE_ASCRIBER_H_ | 6 #define CHROME_BROWSER_DATA_USE_MEASUREMENT_CHROME_DATA_USE_ASCRIBER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <unordered_map> | 10 #include <unordered_map> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
| 14 #include "base/hash.h" | 14 #include "base/hash.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/supports_user_data.h" | 16 #include "base/supports_user_data.h" |
| 17 #include "components/data_use_measurement/core/data_use_ascriber.h" | 17 #include "components/data_use_measurement/core/data_use_ascriber.h" |
| 18 #include "content/public/browser/global_request_id.h" | 18 #include "content/public/browser/global_request_id.h" |
| 19 #include "url/gurl.h" | 19 #include "url/gurl.h" |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 class NavigationHandle; | |
| 23 class RenderFrameHost; | 22 class RenderFrameHost; |
| 24 } | 23 } |
| 25 | 24 |
| 26 namespace data_use_measurement { | 25 namespace data_use_measurement { |
| 27 | 26 |
| 28 class URLRequestClassifier; | 27 class URLRequestClassifier; |
| 29 | 28 |
| 30 // Browser implementation of DataUseAscriber. Maintains a list of | 29 // Browser implementation of DataUseAscriber. Maintains a list of |
| 31 // DataUseRecorder instances, one for each source of data, such as a page | 30 // DataUseRecorder instances, one for each source of data, such as a page |
| 32 // load. | 31 // load. |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 DataUseRecorderEntry, | 147 DataUseRecorderEntry, |
| 149 GlobalRequestIDHash> | 148 GlobalRequestIDHash> |
| 150 pending_navigation_data_use_map_; | 149 pending_navigation_data_use_map_; |
| 151 | 150 |
| 152 DISALLOW_COPY_AND_ASSIGN(ChromeDataUseAscriber); | 151 DISALLOW_COPY_AND_ASSIGN(ChromeDataUseAscriber); |
| 153 }; | 152 }; |
| 154 | 153 |
| 155 } // namespace data_use_measurement | 154 } // namespace data_use_measurement |
| 156 | 155 |
| 157 #endif // CHROME_BROWSER_DATA_USE_MEASUREMENT_CHROME_DATA_USE_ASCRIBER_H_ | 156 #endif // CHROME_BROWSER_DATA_USE_MEASUREMENT_CHROME_DATA_USE_ASCRIBER_H_ |
| OLD | NEW |