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

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

Issue 1427183002: Move MediaDrmBridge provision communication to native side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: For on-demand provisioning the fetcher is created in content/ and depends on the renderer. Created 5 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_
xhwang 2015/11/06 23:08:18 tip: when moving file around, first upload a PS th
Tima Vaisburd 2015/11/11 03:03:34 Acknowledged.
6 #define CONTENT_BROWSER_MEDIA_ANDROID_URL_PROVISION_FETCHER_H_
7
8 #include "base/macros.h"
9 #include "media/base/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,
xhwang 2015/11/06 23:08:18 nit: All ProvisionFetch will use a URL, so it seem
Tima Vaisburd 2015/11/11 03:03:33 I thought we will have another implementation for
xhwang 2015/11/11 09:53:21 Yes, I'll need one in the GPU process. That can be
Tima Vaisburd 2015/11/11 23:26:35 Shall we keep URLProvisionFetcher then? Or change
xhwang 2015/11/12 22:27:03 I really have no preference. Now "URL" seems okay
Tima Vaisburd 2015/11/13 03:13:10 kept current name.
18 private net::URLFetcherDelegate {
xhwang 2015/11/06 23:08:18 style: We don't use private inheritance. https://
Tima Vaisburd 2015/11/11 03:03:34 Just changed to public, but, as the link says, I d
xhwang 2015/11/11 09:53:21 There are 117 cases where net::URLFetcherDelegate
Tima Vaisburd 2015/11/11 23:26:35 Acknowledged.
19 public:
20 explicit URLProvisionFetcher(net::URLRequestContextGetter* context);
21 ~URLProvisionFetcher() override;
22
23 // media::ProvisionFetcher implementation.
24 void Retrieve(const std::string& default_url,
25 const std::string& request_data,
26 const media::ProvisionFetcher::ResponseCB& cb) override;
xhwang 2015/11/06 23:08:18 nit: cb/response_cb/
xhwang 2015/11/06 23:08:18 s/media::ProvisionFetcher::// since |this| is a me
Tima Vaisburd 2015/11/11 23:26:35 Done.
Tima Vaisburd 2015/11/11 23:26:35 Done.
27
28 private:
29 // net::URLFetcherDelegate implementation.
30 void OnURLFetchComplete(const net::URLFetcher* source) override;
31
32 net::URLRequestContextGetter* url_request_context_;
33 scoped_ptr<net::URLFetcher> request_;
34 media::ProvisionFetcher::ResponseCB response_cb_;
35
36 DISALLOW_COPY_AND_ASSIGN(URLProvisionFetcher);
37 };
38
39 /*
40 // A factory that creates URLProvisionFetcher objects.
41
42 class URLProvisionFetcherFactory : public media::ProvisionFetcherFactory {
43 public:
44 scoped_ptr<media::ProvisionFetcher> CreateFetcher(
45 int render_process_id) const override;
46 };
47 */
xhwang 2015/11/06 23:08:18 remove
Tima Vaisburd 2015/11/11 03:03:33 Done.
48 } // namespace content
49
50 #endif // CHROME_BROWSER_MEDIA_ANDROID_URL_PROVISION_FETCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698