| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #import "ios/web/web_state/crw_pass_kit_downloader.h" | 5 #import "ios/web/web_state/crw_pass_kit_downloader.h" |
| 6 | 6 |
| 7 #import "base/ios/weak_nsobject.h" | 7 #import "base/ios/weak_nsobject.h" |
| 8 #include "base/mac/scoped_block.h" | 8 #include "base/mac/scoped_block.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 11 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 12 #import "ios/web/crw_network_activity_indicator_manager.h" | 13 #import "ios/web/crw_network_activity_indicator_manager.h" |
| 13 #include "net/http/http_response_headers.h" | 14 #include "net/http/http_response_headers.h" |
| 14 #include "net/url_request/url_fetcher.h" | 15 #include "net/url_request/url_fetcher.h" |
| 15 #include "net/url_request/url_fetcher_delegate.h" | 16 #include "net/url_request/url_fetcher_delegate.h" |
| 16 #include "net/url_request/url_request_context_getter.h" | 17 #include "net/url_request/url_request_context_getter.h" |
| 17 | 18 |
| 18 using net::URLFetcher; | 19 using net::URLFetcher; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 stringWithFormat:@"PassKitDownloader.NetworkActivityIndicatorKey.%d", | 193 stringWithFormat:@"PassKitDownloader.NetworkActivityIndicatorKey.%d", |
| 193 _passKitDownloaderID]; | 194 _passKitDownloaderID]; |
| 194 } | 195 } |
| 195 | 196 |
| 196 - (void)reportUMAPassKitResult:(DownloadPassKitResult)result { | 197 - (void)reportUMAPassKitResult:(DownloadPassKitResult)result { |
| 197 UMA_HISTOGRAM_ENUMERATION(kUMADownloadPassKitResult, result, | 198 UMA_HISTOGRAM_ENUMERATION(kUMADownloadPassKitResult, result, |
| 198 DOWNLOAD_PASS_KIT_RESULT_COUNT); | 199 DOWNLOAD_PASS_KIT_RESULT_COUNT); |
| 199 } | 200 } |
| 200 | 201 |
| 201 @end | 202 @end |
| OLD | NEW |