OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/renderer/media/android/media_info_loader.h" | 5 #include "content/renderer/media/android/media_info_loader.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bits.h" | 9 #include "base/bits.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram_macros.h" |
12 #include "third_party/WebKit/public/platform/WebURLError.h" | 12 #include "third_party/WebKit/public/platform/WebURLError.h" |
13 #include "third_party/WebKit/public/platform/WebURLLoader.h" | 13 #include "third_party/WebKit/public/platform/WebURLLoader.h" |
14 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 14 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
15 #include "third_party/WebKit/public/web/WebFrame.h" | 15 #include "third_party/WebKit/public/web/WebFrame.h" |
16 | 16 |
17 using blink::WebFrame; | 17 using blink::WebFrame; |
18 using blink::WebURLError; | 18 using blink::WebURLError; |
19 using blink::WebURLLoader; | 19 using blink::WebURLLoader; |
20 using blink::WebURLLoaderOptions; | 20 using blink::WebURLLoaderOptions; |
21 using blink::WebURLRequest; | 21 using blink::WebURLRequest; |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 void MediaInfoLoader::DidBecomeReady(Status status) { | 207 void MediaInfoLoader::DidBecomeReady(Status status) { |
208 UMA_HISTOGRAM_TIMES("Media.InfoLoadDelay", | 208 UMA_HISTOGRAM_TIMES("Media.InfoLoadDelay", |
209 base::TimeTicks::Now() - start_time_); | 209 base::TimeTicks::Now() - start_time_); |
210 active_loader_.reset(); | 210 active_loader_.reset(); |
211 if (!ready_cb_.is_null()) | 211 if (!ready_cb_.is_null()) |
212 base::ResetAndReturn(&ready_cb_).Run(status, url_, first_party_url_, | 212 base::ResetAndReturn(&ready_cb_).Run(status, url_, first_party_url_, |
213 allow_stored_credentials_); | 213 allow_stored_credentials_); |
214 } | 214 } |
215 | 215 |
216 } // namespace content | 216 } // namespace content |
OLD | NEW |