| 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 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber.h" | 5 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "components/data_use_measurement/content/content_url_request_classifier
.h" |
| 8 #include "components/data_use_measurement/core/data_use_recorder.h" | 9 #include "components/data_use_measurement/core/data_use_recorder.h" |
| 9 #include "components/data_use_measurement/core/data_use_user_data.h" | 10 #include "components/data_use_measurement/core/data_use_user_data.h" |
| 11 #include "components/data_use_measurement/core/url_request_classifier.h" |
| 10 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 11 #include "content/public/browser/navigation_handle.h" | 13 #include "content/public/browser/navigation_handle.h" |
| 12 #include "content/public/browser/render_frame_host.h" | 14 #include "content/public/browser/render_frame_host.h" |
| 13 #include "content/public/browser/resource_request_info.h" | 15 #include "content/public/browser/resource_request_info.h" |
| 14 #include "content/public/common/browser_side_navigation_policy.h" | 16 #include "content/public/common/browser_side_navigation_policy.h" |
| 15 #include "net/url_request/url_request.h" | 17 #include "net/url_request/url_request.h" |
| 16 | 18 |
| 17 namespace data_use_measurement { | 19 namespace data_use_measurement { |
| 18 | 20 |
| 19 // static | 21 // static |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 pending_navigation_data_use_map_.find(global_request_id); | 178 pending_navigation_data_use_map_.find(global_request_id); |
| 177 // Pending navigation entry will not be found if finish navigation | 179 // Pending navigation entry will not be found if finish navigation |
| 178 // raced the URLRequest. | 180 // raced the URLRequest. |
| 179 if (navigation_iter != pending_navigation_data_use_map_.end()) { | 181 if (navigation_iter != pending_navigation_data_use_map_.end()) { |
| 180 auto entry = navigation_iter->second; | 182 auto entry = navigation_iter->second; |
| 181 pending_navigation_data_use_map_.erase(navigation_iter); | 183 pending_navigation_data_use_map_.erase(navigation_iter); |
| 182 data_use_recorders_.erase(entry); | 184 data_use_recorders_.erase(entry); |
| 183 } | 185 } |
| 184 } | 186 } |
| 185 | 187 |
| 188 std::unique_ptr<URLRequestClassifier> |
| 189 ChromeDataUseAscriber::CreateURLRequestClassifier() const { |
| 190 return base::MakeUnique<ContentURLRequestClassifier>(); |
| 191 } |
| 192 |
| 186 } // namespace data_use_measurement | 193 } // namespace data_use_measurement |
| OLD | NEW |