OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |