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

Side by Side Diff: content/browser/media/android/media_resource_getter_impl.h

Issue 130363002: Pass Chrome user agent string to Android media player (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 6 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_RESOURCE_GETTER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_RESOURCE_GETTER_IMPL_H_
6 #define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_RESOURCE_GETTER_IMPL_H_ 6 #define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_RESOURCE_GETTER_IMPL_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // media::MediaResourceGetter implementation. 42 // media::MediaResourceGetter implementation.
43 // Must be called on the UI thread. 43 // Must be called on the UI thread.
44 virtual void GetCookies(const GURL& url, 44 virtual void GetCookies(const GURL& url,
45 const GURL& first_party_for_cookies, 45 const GURL& first_party_for_cookies,
46 const GetCookieCB& callback) OVERRIDE; 46 const GetCookieCB& callback) OVERRIDE;
47 virtual void GetPlatformPathFromFileSystemURL( 47 virtual void GetPlatformPathFromFileSystemURL(
48 const GURL& url, 48 const GURL& url,
49 const GetPlatformPathCB& callback) OVERRIDE; 49 const GetPlatformPathCB& callback) OVERRIDE;
50 virtual void ExtractMediaMetadata( 50 virtual void ExtractMediaMetadata(
51 const std::string& url, const std::string& cookies, 51 const std::string& url, const std::string& cookies,
52 const std::string& user_agent,
52 const ExtractMediaMetadataCB& callback) OVERRIDE; 53 const ExtractMediaMetadataCB& callback) OVERRIDE;
53 54
54 static bool RegisterMediaResourceGetter(JNIEnv* env); 55 static bool RegisterMediaResourceGetter(JNIEnv* env);
55 56
56 private: 57 private:
57 // Called when GetCookies() finishes. 58 // Called when GetCookies() finishes.
58 void GetCookiesCallback( 59 void GetCookiesCallback(
59 const GetCookieCB& callback, const std::string& cookies); 60 const GetCookieCB& callback, const std::string& cookies);
60 61
61 // Called when GetPlatformPathFromFileSystemURL() finishes. 62 // Called when GetPlatformPathFromFileSystemURL() finishes.
(...skipping 14 matching lines...) Expand all
76 77
77 // Routing id for the render view, used to check tab specific cookie policy. 78 // Routing id for the render view, used to check tab specific cookie policy.
78 int routing_id_; 79 int routing_id_;
79 80
80 DISALLOW_COPY_AND_ASSIGN(MediaResourceGetterImpl); 81 DISALLOW_COPY_AND_ASSIGN(MediaResourceGetterImpl);
81 }; 82 };
82 83
83 } // namespace content 84 } // namespace content
84 85
85 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_RESOURCE_GETTER_IMPL_H_ 86 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_RESOURCE_GETTER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698