| 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 26 matching lines...) Expand all Loading... |
| 37 MediaResourceGetterImpl(BrowserContext* browser_context, | 37 MediaResourceGetterImpl(BrowserContext* browser_context, |
| 38 fileapi::FileSystemContext* file_system_context, | 38 fileapi::FileSystemContext* file_system_context, |
| 39 int renderer_id, int routing_id); | 39 int renderer_id, int routing_id); |
| 40 virtual ~MediaResourceGetterImpl(); | 40 virtual ~MediaResourceGetterImpl(); |
| 41 | 41 |
| 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 GetPlatformPathFromURL( |
| 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 ExtractMediaMetadataCB& callback) OVERRIDE; | 52 const ExtractMediaMetadataCB& callback) OVERRIDE; |
| 53 | 53 |
| 54 static bool RegisterMediaResourceGetter(JNIEnv* env); | 54 static bool RegisterMediaResourceGetter(JNIEnv* env); |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 // Called when GetCookies() finishes. | 57 // Called when GetCookies() finishes. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 76 | 76 |
| 77 // Routing id for the render view, used to check tab specific cookie policy. | 77 // Routing id for the render view, used to check tab specific cookie policy. |
| 78 int routing_id_; | 78 int routing_id_; |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(MediaResourceGetterImpl); | 80 DISALLOW_COPY_AND_ASSIGN(MediaResourceGetterImpl); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace content | 83 } // namespace content |
| 84 | 84 |
| 85 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_RESOURCE_GETTER_IMPL_H_ | 85 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_RESOURCE_GETTER_IMPL_H_ |
| OLD | NEW |