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

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

Issue 1977173002: Rename media::interfaces to media::mojom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android + chromeos files Created 4 years, 7 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
OLDNEW
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
11 MojoProvisionFetcher::MojoProvisionFetcher( 11 MojoProvisionFetcher::MojoProvisionFetcher(
12 interfaces::ProvisionFetcherPtr provision_fetcher_ptr) 12 mojom::ProvisionFetcherPtr provision_fetcher_ptr)
13 : provision_fetcher_ptr_(std::move(provision_fetcher_ptr)), 13 : provision_fetcher_ptr_(std::move(provision_fetcher_ptr)),
14 weak_factory_(this) { 14 weak_factory_(this) {
15 DVLOG(1) << __FUNCTION__; 15 DVLOG(1) << __FUNCTION__;
16 } 16 }
17 17
18 MojoProvisionFetcher::~MojoProvisionFetcher() {} 18 MojoProvisionFetcher::~MojoProvisionFetcher() {}
19 19
20 // ProvisionFetcher implementation: 20 // ProvisionFetcher implementation:
21 void MojoProvisionFetcher::Retrieve(const std::string& default_url, 21 void MojoProvisionFetcher::Retrieve(const std::string& default_url,
22 const std::string& request_data, 22 const std::string& request_data,
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 const std::string& response) {
34 response_cb.Run(success, response); 34 response_cb.Run(success, response);
35 } 35 }
36 36
37 } // namespace media 37 } // namespace media
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_provision_fetcher.h ('k') | media/mojo/services/mojo_renderer_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698