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

Unified Diff: media/base/android/cookie_getter.h

Issue 10919075: Move android mediaplayer from render process to browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing comments and resolving merge conflicts Created 8 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | media/base/android/cookie_getter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e076159aba1bccd7ac012785229c0af085595e5c
--- /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_COOKIE_GETTER_H_
+
+#include <string>
+
+#include "base/callback.h"
+
+namespace media {
+
+// Class for asynchronously retrieving the cookies for a given URL.
+class CookieGetter {
+ public:
+ typedef base::Callback<void(const 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 std::string& first_party_for_cookies,
+ const GetCookieCB& callback) = 0;
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_ANDROID_COOKIE_GETTER_H_
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | media/base/android/cookie_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698