Chromium Code Reviews| Index: media/base/android/cookies_retriever.h |
| diff --git a/media/base/android/cookies_retriever.h b/media/base/android/cookies_retriever.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d237bdba80aa116889eef1d5d91e16d61e885fd7 |
| --- /dev/null |
| +++ b/media/base/android/cookies_retriever.h |
| @@ -0,0 +1,30 @@ |
| +// 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_COOKIES_RETRIEVER_H_ |
| +#define MEDIA_BASE_ANDROID_COOKIES_RETRIEVER_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/callback.h" |
| + |
| +namespace media { |
| + |
| +// Class for asynchronously retrieving the cookies for a given url. |
| +class CookiesRetriever : |
| + public base::RefCountedThreadSafe<CookiesRetriever>{ |
| + public: |
| + typedef base::Callback<void(std::string)> GetCookieCB; |
| + |
| + virtual ~CookiesRetriever() {}; |
| + |
| + // Method for getting the cookies for a given url. The callback takes place |
| + // on the same thread where this function gets called. |
| + virtual void GetCookiesAsync(std::string url, |
| + const GetCookieCB& callback) = 0; |
| +}; |
| + |
| +} // namespace net |
|
Yaron
2012/09/05 07:03:56
media
qinmin
2012/09/05 19:34:42
Done.
|
| + |
| +#endif // MEDIA_BASE_ANDROID_COOKIES_RETRIEVER_H_ |