Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 MEDIA_BASE_ANDROID_COOKIE_GETTER_H_ | |
| 6 #define MEDIA_BASE_ANDROID_COOKIES_GETTER_H_ | |
|
scherkus (not reviewing)
2012/09/10 12:19:08
s/COOKIES/COOKIE (remove extra "S")
qinmin
2012/09/11 04:50:24
Done.
| |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/callback.h" | |
| 11 | |
| 12 namespace media { | |
| 13 | |
| 14 // Class for asynchronously retrieving the cookies for a given URL. | |
| 15 class CookieGetter : | |
| 16 public base::RefCountedThreadSafe<CookieGetter>{ | |
|
scherkus (not reviewing)
2012/09/10 12:19:08
please don't proliferate reference counted interfa
qinmin
2012/09/11 04:50:24
Done.
| |
| 17 public: | |
| 18 typedef base::Callback<void(std::string)> GetCookieCB; | |
| 19 virtual ~CookieGetter(); | |
| 20 | |
| 21 // Method for getting the cookies for a given URL. | |
| 22 // The callback is executed on the caller's thread. | |
| 23 virtual void GetCookies( | |
| 24 const std::string& url, const GetCookieCB& callback) = 0; | |
| 25 }; | |
| 26 | |
| 27 } // namespace media | |
| 28 | |
| 29 #endif // MEDIA_BASE_ANDROID_COOKIES_GETTER_H_ | |
|
scherkus (not reviewing)
2012/09/10 12:19:08
ditto
qinmin
2012/09/11 04:50:24
Done.
| |
| OLD | NEW |