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 <stdint.h> | 9 #include <stdint.h> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
16 #include "media/base/android/media_resource_getter.h" | 16 #include "media/base/android/media_resource_getter.h" |
17 #include "media/base/android/media_url_interceptor.h" | 17 #include "media/base/android/media_url_interceptor.h" |
18 #include "net/base/auth.h" | 18 #include "net/base/auth.h" |
19 #include "net/cookies/canonical_cookie.h" | 19 #include "net/cookies/canonical_cookie.h" |
20 | 20 |
21 namespace storage { | 21 namespace storage { |
22 class FileSystemContext; | 22 class FileSystemContext; |
23 } | 23 } |
24 | 24 |
25 namespace net { | |
26 class URLRequestContextGetter; | |
27 } | |
28 | |
29 namespace content { | 25 namespace content { |
30 | 26 |
31 class BrowserContext; | 27 class BrowserContext; |
32 class ResourceContext; | 28 class ResourceContext; |
33 | 29 |
34 // This class implements media::MediaResourceGetter to retrieve resources | 30 // This class implements media::MediaResourceGetter to retrieve resources |
35 // asynchronously on the UI thread. | 31 // asynchronously on the UI thread. |
36 class MediaResourceGetterImpl : public media::MediaResourceGetter { | 32 class MediaResourceGetterImpl : public media::MediaResourceGetter { |
37 public: | 33 public: |
38 // Construct a MediaResourceGetterImpl object. |browser_context| and | 34 // Construct a MediaResourceGetterImpl object. |browser_context| and |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 86 |
91 // NOTE: Weak pointers must be invalidated before all other member variables. | 87 // NOTE: Weak pointers must be invalidated before all other member variables. |
92 base::WeakPtrFactory<MediaResourceGetterImpl> weak_factory_; | 88 base::WeakPtrFactory<MediaResourceGetterImpl> weak_factory_; |
93 | 89 |
94 DISALLOW_COPY_AND_ASSIGN(MediaResourceGetterImpl); | 90 DISALLOW_COPY_AND_ASSIGN(MediaResourceGetterImpl); |
95 }; | 91 }; |
96 | 92 |
97 } // namespace content | 93 } // namespace content |
98 | 94 |
99 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_RESOURCE_GETTER_IMPL_H_ | 95 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_RESOURCE_GETTER_IMPL_H_ |
OLD | NEW |