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 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_URL_PROVISION_FETCHER_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_URL_PROVISION_FETCHER_H_ |
6 #define CONTENT_BROWSER_MEDIA_ANDROID_URL_PROVISION_FETCHER_H_ | 6 #define CONTENT_BROWSER_MEDIA_URL_PROVISION_FETCHER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "media/base/android/provision_fetcher.h" | 9 #include "media/base/provision_fetcher.h" |
10 #include "net/url_request/url_fetcher.h" | 10 #include "net/url_request/url_fetcher.h" |
11 #include "net/url_request/url_fetcher_delegate.h" | 11 #include "net/url_request/url_fetcher_delegate.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 // The ProvisionFetcher that retrieves the data by HTTP POST request. | 15 // The ProvisionFetcher that retrieves the data by HTTP POST request. |
16 | 16 |
17 class URLProvisionFetcher : public media::ProvisionFetcher, | 17 class URLProvisionFetcher : public media::ProvisionFetcher, |
18 public net::URLFetcherDelegate { | 18 public net::URLFetcherDelegate { |
19 public: | 19 public: |
(...skipping 11 matching lines...) Expand all Loading... |
31 | 31 |
32 net::URLRequestContextGetter* context_getter_; | 32 net::URLRequestContextGetter* context_getter_; |
33 std::unique_ptr<net::URLFetcher> request_; | 33 std::unique_ptr<net::URLFetcher> request_; |
34 media::ProvisionFetcher::ResponseCB response_cb_; | 34 media::ProvisionFetcher::ResponseCB response_cb_; |
35 | 35 |
36 DISALLOW_COPY_AND_ASSIGN(URLProvisionFetcher); | 36 DISALLOW_COPY_AND_ASSIGN(URLProvisionFetcher); |
37 }; | 37 }; |
38 | 38 |
39 } // namespace content | 39 } // namespace content |
40 | 40 |
41 #endif // CHROME_BROWSER_MEDIA_ANDROID_URL_PROVISION_FETCHER_H_ | 41 #endif // CONTENT_BROWSER_MEDIA_URL_PROVISION_FETCHER_H_ |
OLD | NEW |