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/public/browser/provision_fetcher_impl.h" | 5 #include "content/public/browser/provision_fetcher_impl.h" |
6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
7 #include "content/public/browser/provision_fetcher_factory.h" | 8 #include "content/public/browser/provision_fetcher_factory.h" |
8 #include "mojo/public/cpp/bindings/strong_binding.h" | 9 #include "mojo/public/cpp/bindings/strong_binding.h" |
9 #include "net/url_request/url_request_context_getter.h" | 10 #include "net/url_request/url_request_context_getter.h" |
10 | 11 |
11 namespace content { | 12 namespace content { |
12 | 13 |
13 // static | 14 // static |
14 void ProvisionFetcherImpl::Create( | 15 void ProvisionFetcherImpl::Create( |
15 net::URLRequestContextGetter* context_getter, | 16 net::URLRequestContextGetter* context_getter, |
16 media::mojom::ProvisionFetcherRequest request) { | 17 media::mojom::ProvisionFetcherRequest request) { |
(...skipping 22 matching lines...) Expand all Loading... |
39 } | 40 } |
40 | 41 |
41 void ProvisionFetcherImpl::OnResponse(const RetrieveCallback& callback, | 42 void ProvisionFetcherImpl::OnResponse(const RetrieveCallback& callback, |
42 bool success, | 43 bool success, |
43 const std::string& response) { | 44 const std::string& response) { |
44 DVLOG(1) << __FUNCTION__ << ": " << success; | 45 DVLOG(1) << __FUNCTION__ << ": " << success; |
45 callback.Run(success, response); | 46 callback.Run(success, response); |
46 } | 47 } |
47 | 48 |
48 } // namespace content | 49 } // namespace content |
OLD | NEW |