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 std::string& user_agent, | 52 const std::string& user_agent, |
53 const ExtractMediaMetadataCB& callback) OVERRIDE; | 53 const ExtractMediaMetadataCB& callback) OVERRIDE; |
54 | 54 |
55 static bool RegisterMediaResourceGetter(JNIEnv* env); | 55 static bool RegisterMediaResourceGetter(JNIEnv* env); |
56 | 56 |
57 private: | 57 private: |
(...skipping 19 matching lines...) Expand all Loading... |
77 | 77 |
78 // 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. |
79 int routing_id_; | 79 int routing_id_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(MediaResourceGetterImpl); | 81 DISALLOW_COPY_AND_ASSIGN(MediaResourceGetterImpl); |
82 }; | 82 }; |
83 | 83 |
84 } // namespace content | 84 } // namespace content |
85 | 85 |
86 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_RESOURCE_GETTER_IMPL_H_ | 86 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_RESOURCE_GETTER_IMPL_H_ |
OLD | NEW |