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 #include "content/browser/media/android/url_provision_fetcher.h" | 5 #include "content/browser/media/android/url_provision_fetcher.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "content/public/browser/android/provision_fetcher_factory.h" | 8 #include "content/public/browser/android/provision_fetcher_factory.h" |
9 #include "media/base/bind_to_current_loop.h" | 9 #include "media/base/bind_to_current_loop.h" |
10 #include "net/url_request/url_fetcher.h" | 10 #include "net/url_request/url_fetcher.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // URLFetcher implementation calls OnURLFetchComplete() on the same thread | 65 // URLFetcher implementation calls OnURLFetchComplete() on the same thread |
66 // that called Start() and it does this asynchronously. | 66 // that called Start() and it does this asynchronously. |
67 response_cb_.Run(success, response); | 67 response_cb_.Run(success, response); |
68 } | 68 } |
69 | 69 |
70 // Implementation of content public method CreateProvisionFetcher(). | 70 // Implementation of content public method CreateProvisionFetcher(). |
71 | 71 |
72 std::unique_ptr<media::ProvisionFetcher> CreateProvisionFetcher( | 72 std::unique_ptr<media::ProvisionFetcher> CreateProvisionFetcher( |
73 net::URLRequestContextGetter* context_getter) { | 73 net::URLRequestContextGetter* context_getter) { |
74 DCHECK(context_getter); | 74 DCHECK(context_getter); |
75 return base::WrapUnique(new URLProvisionFetcher(context_getter)); | 75 return base::MakeUnique<URLProvisionFetcher>(context_getter); |
76 } | 76 } |
77 | 77 |
78 } // namespace content | 78 } // namespace content |
OLD | NEW |