Chromium Code Reviews| Index: media/base/android/cookie_getter.h |
| diff --git a/media/base/android/cookie_getter.h b/media/base/android/cookie_getter.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a10ae63d7ab4b12d4aa133ca02c1577d6427cad1 |
| --- /dev/null |
| +++ b/media/base/android/cookie_getter.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MEDIA_BASE_ANDROID_COOKIE_GETTER_H_ |
| +#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.
|
| + |
| +#include <string> |
| + |
| +#include "base/callback.h" |
| + |
| +namespace media { |
| + |
| +// Class for asynchronously retrieving the cookies for a given URL. |
| +class CookieGetter : |
| + 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.
|
| + public: |
| + typedef base::Callback<void(std::string)> GetCookieCB; |
| + virtual ~CookieGetter(); |
| + |
| + // Method for getting the cookies for a given URL. |
| + // The callback is executed on the caller's thread. |
| + virtual void GetCookies( |
| + const std::string& url, const GetCookieCB& callback) = 0; |
| +}; |
| + |
| +} // namespace media |
| + |
| +#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.
|