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 #include "content/browser/media/android/media_resource_getter_impl.h" | 5 #include "content/browser/media/android/media_resource_getter_impl.h" |
6 | 6 |
7 #include "base/android/context_utils.h" | 7 #include "base/android/context_utils.h" |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/threading/sequenced_worker_pool.h" | 13 #include "base/threading/sequenced_worker_pool.h" |
14 #include "content/browser/blob_storage/chrome_blob_storage_context.h" | 14 #include "content/browser/blob_storage/chrome_blob_storage_context.h" |
15 #include "content/browser/child_process_security_policy_impl.h" | |
16 #include "content/browser/fileapi/browser_file_system_helper.h" | 15 #include "content/browser/fileapi/browser_file_system_helper.h" |
17 #include "content/browser/resource_context_impl.h" | 16 #include "content/browser/resource_context_impl.h" |
| 17 #include "content/browser/shared/child_process_security_policy_helper.h" |
18 #include "content/public/browser/browser_context.h" | 18 #include "content/public/browser/browser_context.h" |
19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
20 #include "content/public/browser/content_browser_client.h" | 20 #include "content/public/browser/content_browser_client.h" |
21 #include "content/public/browser/storage_partition.h" | 21 #include "content/public/browser/storage_partition.h" |
22 #include "content/public/common/content_client.h" | 22 #include "content/public/common/content_client.h" |
23 #include "content/public/common/url_constants.h" | 23 #include "content/public/common/url_constants.h" |
24 #include "jni/MediaResourceGetter_jni.h" | 24 #include "jni/MediaResourceGetter_jni.h" |
25 #include "media/base/android/media_url_interceptor.h" | 25 #include "media/base/android/media_url_interceptor.h" |
26 #include "net/base/auth.h" | 26 #include "net/base/auth.h" |
27 #include "net/cookies/cookie_store.h" | 27 #include "net/cookies/cookie_store.h" |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 FROM_HERE, | 380 FROM_HERE, |
381 base::Bind(&GetMediaMetadataFromFd, fd, offset, size, callback)); | 381 base::Bind(&GetMediaMetadataFromFd, fd, offset, size, callback)); |
382 } | 382 } |
383 | 383 |
384 // static | 384 // static |
385 bool MediaResourceGetterImpl::RegisterMediaResourceGetter(JNIEnv* env) { | 385 bool MediaResourceGetterImpl::RegisterMediaResourceGetter(JNIEnv* env) { |
386 return RegisterNativesImpl(env); | 386 return RegisterNativesImpl(env); |
387 } | 387 } |
388 | 388 |
389 } // namespace content | 389 } // namespace content |
OLD | NEW |