Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(850)

Side by Side Diff: media/mojo/services/mojo_provision_fetcher.h

Issue 2062333002: mojo::Callback -> base::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/mojo/services/mojo_cdm_promise.cc ('k') | media/mojo/services/mojo_provision_fetcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef MEDIA_MOJO_SERVICES_MOJO_PROVISION_FETCHER_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_PROVISION_FETCHER_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_PROVISION_FETCHER_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_PROVISION_FETCHER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "media/base/android/provision_fetcher.h" 10 #include "media/base/android/provision_fetcher.h"
(...skipping 10 matching lines...) Expand all
21 21
22 // ProvisionFetcher implementation: 22 // ProvisionFetcher implementation:
23 void Retrieve(const std::string& default_url, 23 void Retrieve(const std::string& default_url,
24 const std::string& request_data, 24 const std::string& request_data,
25 const ResponseCB& response_cb) final; 25 const ResponseCB& response_cb) final;
26 26
27 private: 27 private:
28 // Callback for mojom::ProvisionFetcherPtr::Retrieve(). 28 // Callback for mojom::ProvisionFetcherPtr::Retrieve().
29 void OnResponse(const ResponseCB& response_cb, 29 void OnResponse(const ResponseCB& response_cb,
30 bool success, 30 bool success,
31 const std::string& response); 31 mojo::String response);
32 32
33 mojom::ProvisionFetcherPtr provision_fetcher_ptr_; 33 mojom::ProvisionFetcherPtr provision_fetcher_ptr_;
34 34
35 base::WeakPtrFactory<MojoProvisionFetcher> weak_factory_; 35 base::WeakPtrFactory<MojoProvisionFetcher> weak_factory_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(MojoProvisionFetcher); 37 DISALLOW_COPY_AND_ASSIGN(MojoProvisionFetcher);
38 }; 38 };
39 39
40 } // namespace media 40 } // namespace media
41 41
42 #endif // MEDIA_MOJO_SERVICES_MOJO_PROVISION_FETCHER_H_ 42 #endif // MEDIA_MOJO_SERVICES_MOJO_PROVISION_FETCHER_H_
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_cdm_promise.cc ('k') | media/mojo/services/mojo_provision_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698