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

Side by Side Diff: media/base/android/cookie_getter.h

Issue 11368031: First step towards component build for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: indent Created 8 years, 1 month 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
« no previous file with comments | « crypto/openssl_util.h ('k') | media/base/android/media_jni_registrar.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_ANDROID_COOKIE_GETTER_H_ 5 #ifndef MEDIA_BASE_ANDROID_COOKIE_GETTER_H_
6 #define MEDIA_BASE_ANDROID_COOKIE_GETTER_H_ 6 #define MEDIA_BASE_ANDROID_COOKIE_GETTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "media/base/media_export.h"
11 12
12 namespace media { 13 namespace media {
13 14
14 // Class for asynchronously retrieving the cookies for a given URL. 15 // Class for asynchronously retrieving the cookies for a given URL.
15 class CookieGetter { 16 class MEDIA_EXPORT CookieGetter {
16 public: 17 public:
17 typedef base::Callback<void(const std::string&)> GetCookieCB; 18 typedef base::Callback<void(const std::string&)> GetCookieCB;
18 virtual ~CookieGetter(); 19 virtual ~CookieGetter();
19 20
20 // Method for getting the cookies for a given URL. 21 // Method for getting the cookies for a given URL.
21 // The callback is executed on the caller's thread. 22 // The callback is executed on the caller's thread.
22 virtual void GetCookies(const std::string& url, 23 virtual void GetCookies(const std::string& url,
23 const std::string& first_party_for_cookies, 24 const std::string& first_party_for_cookies,
24 const GetCookieCB& callback) = 0; 25 const GetCookieCB& callback) = 0;
25 }; 26 };
26 27
27 } // namespace media 28 } // namespace media
28 29
29 #endif // MEDIA_BASE_ANDROID_COOKIE_GETTER_H_ 30 #endif // MEDIA_BASE_ANDROID_COOKIE_GETTER_H_
OLDNEW
« no previous file with comments | « crypto/openssl_util.h ('k') | media/base/android/media_jni_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698