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

Side by Side Diff: content/browser/android/cookies_retriever_impl.h

Issue 10919075: Move android mediaplayer from render process to browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing comments Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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_ANDROID_COOKIES_RETRIEVER_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_COOKIES_RETRIEVER_IMPL_H_
7
8 #include <string>
9
10 #include "media/base/android/cookies_retriever.h"
11
12 namespace net {
13 class URLRequestContextGetter;
14 }
15
16 namespace content {
17
18 // This class implements media::CookiesRetriever to retrive cookies
19 // asynchronously on the UI thread.
20 class CookiesRetrieverImpl : public media::CookiesRetriever {
21 public:
22 explicit CookiesRetrieverImpl(net::URLRequestContextGetter* context_getter);
23 virtual ~CookiesRetrieverImpl();
24
25 // Need to be called on the UI thread.
scherkus (not reviewing) 2012/09/07 13:17:35 this should note that this is "media::CookiesRetri
qinmin 2012/09/07 22:48:27 Done.
26 virtual void GetCookiesAsync(std::string url,
scherkus (not reviewing) 2012/09/07 13:17:35 nit: incorrect indent style -- param should go on
qinmin 2012/09/07 22:48:27 Done.
27 const media::CookiesRetriever::GetCookieCB& callback) OVERRIDE;
28
29 // Helper Methods for posting tasks.
30 void RequestCookies();
scherkus (not reviewing) 2012/09/07 13:17:35 move all these to private
qinmin 2012/09/07 22:48:27 Done.
31 void ReturnCookies(const std::string& cookies);
32 void GetCookiesCallback(const std::string& cookies);
33
34 private:
35 std::string url_;
36 net::URLRequestContextGetter* context_getter_;
37 media::CookiesRetriever::GetCookieCB get_cookies_cb_;
38
39 DISALLOW_COPY_AND_ASSIGN(CookiesRetrieverImpl);
40 };
41
42 } // namespace content
43
44 #endif // CONTENT_BROWSER_ANDROID_COOKIES_RETRIEVER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698