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

Unified Diff: content/browser/android/media_player_manager_android.cc

Issue 12595005: Parsing filesystem url before giving it to media player (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: content/browser/android/media_player_manager_android.cc
diff --git a/content/browser/android/media_player_manager_android.cc b/content/browser/android/media_player_manager_android.cc
index 6277ecdc586b36a7650b08963be00bae7dd99201..3a708cefb84450bcfc6ede8b1c685be6beb8a96f 100644
--- a/content/browser/android/media_player_manager_android.cc
+++ b/content/browser/android/media_player_manager_android.cc
@@ -5,11 +5,12 @@
#include "content/browser/android/media_player_manager_android.h"
#include "base/bind.h"
-#include "content/browser/android/cookie_getter_impl.h"
+#include "content/browser/android/media_resource_getter_impl.h"
#include "content/common/media/media_player_messages.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
+#include "content/public/browser/storage_partition.h"
using media::MediaPlayerBridge;
@@ -106,9 +107,13 @@ void MediaPlayerManagerAndroid::OnInitialize(
RenderProcessHost* host = render_view_host()->GetProcess();
BrowserContext* context = host->GetBrowserContext();
+ StoragePartition* partition = host->GetStoragePartition();
+ fileapi::FileSystemContext* file_system_context =
+ partition ? partition->GetFileSystemContext() : NULL;
players_.push_back(new MediaPlayerBridge(
player_id, url, first_party_for_cookies,
- new CookieGetterImpl(context, host->GetID(), routing_id()),
+ new MediaResourceGetterImpl(context, file_system_context, host->GetID(),
+ routing_id()),
context->IsOffTheRecord(), this,
base::Bind(&MediaPlayerManagerAndroid::OnError, base::Unretained(this)),
base::Bind(&MediaPlayerManagerAndroid::OnVideoSizeChanged,

Powered by Google App Engine
This is Rietveld 408576698