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

Side by Side Diff: content/browser/android/cookie_getter_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_COOKIE_GETTER_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_COOKIE_GETTER_IMPL_H_
7
8 #include <string>
9
10 #include "media/base/android/cookie_getter.h"
11
12 namespace net {
13 class URLRequestContextGetter;
14 }
15
16 namespace content {
17
18 // This class implements media::CookieGetter to retrive cookies
19 // asynchronously on the UI thread.
20 class CookieGetterImpl : public media::CookieGetter {
scherkus (not reviewing) 2012/09/10 12:19:08 This class should have a WeakPtrFactory object tha
qinmin 2012/09/11 04:50:24 Done. The callback passed from MediaPlayerBridge t
21 public:
22 explicit CookieGetterImpl(net::URLRequestContextGetter* context_getter);
23 virtual ~CookieGetterImpl();
24
25 // media::CookieGetter implementation.
26 // Need to be called on the UI thread.
scherkus (not reviewing) 2012/09/10 12:19:08 s/Need to/Must/
qinmin 2012/09/11 04:50:24 Done.
27 virtual void GetCookies(
28 const std::string& url, const GetCookieCB& callback) OVERRIDE;
29
30 private:
31 // Helper Methods for posting tasks.
scherkus (not reviewing) 2012/09/10 12:19:08 nit: remove comment (not adding much value)
qinmin 2012/09/11 04:50:24 Done.
32 void GetCookiesCallback(
33 const std::string& cookies, const GetCookieCB& callback);
34 void RequestCookies(const std::string& url, const GetCookieCB& callback);
35 void ReturnCookies(const GetCookieCB& callback, const std::string& cookies);
36
37 net::URLRequestContextGetter* context_getter_;
38
39 DISALLOW_COPY_AND_ASSIGN(CookieGetterImpl);
40 };
41
42 } // namespace content
43
44 #endif // CONTENT_BROWSER_ANDROID_COOKIE_GETTER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698