OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "media/mojo/services/mojo_provision_fetcher.h" | 5 #include "media/mojo/services/mojo_provision_fetcher.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 | 8 |
9 namespace media { | 9 namespace media { |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 const ResponseCB& response_cb) { | 23 const ResponseCB& response_cb) { |
24 DVLOG(1) << __FUNCTION__; | 24 DVLOG(1) << __FUNCTION__; |
25 provision_fetcher_ptr_->Retrieve( | 25 provision_fetcher_ptr_->Retrieve( |
26 default_url, request_data, | 26 default_url, request_data, |
27 base::Bind(&MojoProvisionFetcher::OnResponse, weak_factory_.GetWeakPtr(), | 27 base::Bind(&MojoProvisionFetcher::OnResponse, weak_factory_.GetWeakPtr(), |
28 response_cb)); | 28 response_cb)); |
29 } | 29 } |
30 | 30 |
31 void MojoProvisionFetcher::OnResponse(const ResponseCB& response_cb, | 31 void MojoProvisionFetcher::OnResponse(const ResponseCB& response_cb, |
32 bool success, | 32 bool success, |
33 const std::string& response) { | 33 mojo::String response) { |
34 response_cb.Run(success, response); | 34 response_cb.Run(success, response); |
35 } | 35 } |
36 | 36 |
37 } // namespace media | 37 } // namespace media |
OLD | NEW |