| 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_COOKIE_GETTER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/callback.h" | |
| 11 #include "media/base/media_export.h" | |
| 12 | |
| 13 namespace media { | |
| 14 | |
| 15 // Class for asynchronously retrieving the cookies for a given URL. | |
| 16 class MEDIA_EXPORT CookieGetter { | |
| 17 public: | |
| 18 typedef base::Callback<void(const 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(const std::string& url, | |
| 24 const std::string& first_party_for_cookies, | |
| 25 const GetCookieCB& callback) = 0; | |
| 26 }; | |
| 27 | |
| 28 } // namespace media | |
| 29 | |
| 30 #endif // MEDIA_BASE_ANDROID_COOKIE_GETTER_H_ | |
| OLD | NEW |