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

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

Issue 12595005: Parsing filesystem url before giving it to media player (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase change Created 7 years, 9 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 | « media/base/android/media_player_bridge.cc ('k') | media/base/android/media_resource_getter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_resource_getter.h
diff --git a/media/base/android/media_resource_getter.h b/media/base/android/media_resource_getter.h
new file mode 100644
index 0000000000000000000000000000000000000000..ae4a6e52c5b55c45f09c71bbe1a6dce7dd1575cf
--- /dev/null
+++ b/media/base/android/media_resource_getter.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2013 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_MEDIA_RESOURCE_GETTER_H_
+#define MEDIA_BASE_ANDROID_MEDIA_RESOURCE_GETTER_H_
+
+#include <string>
+
+#include "base/callback.h"
+#include "base/files/file_path.h"
+#include "googleurl/src/gurl.h"
+#include "media/base/media_export.h"
+
+namespace media {
+
+// Class for asynchronously retrieving resources for a media URL. All callbacks
+// are executed on the caller's thread.
+class MEDIA_EXPORT MediaResourceGetter {
+ public:
+ typedef base::Callback<void(const std::string&)> GetCookieCB;
+ typedef base::Callback<void(const std::string&)> GetPlatformPathCB;
+ virtual ~MediaResourceGetter();
+
+ // Method for getting the cookies for a given URL.
+ virtual void GetCookies(const GURL& url,
+ const GURL& first_party_for_cookies,
+ const GetCookieCB& callback) = 0;
+
+ // Method for getting the platform path from a file system URL.
+ virtual void GetPlatformPathFromFileSystemURL(
+ const GURL& url,
+ const GetPlatformPathCB& callback) = 0;
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_ANDROID_MEDIA_RESOURCE_GETTER_H_
« no previous file with comments | « media/base/android/media_player_bridge.cc ('k') | media/base/android/media_resource_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698