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

Side by Side Diff: content/browser/media/android/url_provision_fetcher.h

Issue 2469863010: Move all ProvisionFetcher classes out of android/ subdirectories. (Closed)
Patch Set: Another NON_EXPORTED_BASE. Created 4 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_URL_PROVISION_FETCHER_H_
6 #define CONTENT_BROWSER_MEDIA_ANDROID_URL_PROVISION_FETCHER_H_
7
8 #include "base/macros.h"
9 #include "media/base/android/provision_fetcher.h"
10 #include "net/url_request/url_fetcher.h"
11 #include "net/url_request/url_fetcher_delegate.h"
12
13 namespace content {
14
15 // The ProvisionFetcher that retrieves the data by HTTP POST request.
16
17 class URLProvisionFetcher : public media::ProvisionFetcher,
18 public net::URLFetcherDelegate {
19 public:
20 explicit URLProvisionFetcher(net::URLRequestContextGetter* context_getter);
21 ~URLProvisionFetcher() override;
22
23 // media::ProvisionFetcher implementation.
24 void Retrieve(const std::string& default_url,
25 const std::string& request_data,
26 const ProvisionFetcher::ResponseCB& response_cb) override;
27
28 private:
29 // net::URLFetcherDelegate implementation.
30 void OnURLFetchComplete(const net::URLFetcher* source) override;
31
32 net::URLRequestContextGetter* context_getter_;
33 std::unique_ptr<net::URLFetcher> request_;
34 media::ProvisionFetcher::ResponseCB response_cb_;
35
36 DISALLOW_COPY_AND_ASSIGN(URLProvisionFetcher);
37 };
38
39 } // namespace content
40
41 #endif // CHROME_BROWSER_MEDIA_ANDROID_URL_PROVISION_FETCHER_H_
OLDNEW
« no previous file with comments | « content/browser/media/android/provision_fetcher_impl.cc ('k') | content/browser/media/android/url_provision_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698