| 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" |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 const int64_t offset, | 374 const int64_t offset, |
| 375 const int64_t size, | 375 const int64_t size, |
| 376 const ExtractMediaMetadataCB& callback) { | 376 const ExtractMediaMetadataCB& callback) { |
| 377 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 377 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 378 base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool(); | 378 base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool(); |
| 379 pool->PostWorkerTask( | 379 pool->PostWorkerTask( |
| 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 | |
| 385 bool MediaResourceGetterImpl::RegisterMediaResourceGetter(JNIEnv* env) { | |
| 386 return RegisterNativesImpl(env); | |
| 387 } | |
| 388 | |
| 389 } // namespace content | 384 } // namespace content |
| OLD | NEW |