| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "media/tools/media_bench/file_protocol.h" | 5 #include "media/ffmpeg/file_protocol.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
| 10 #include <io.h> | 10 #include <io.h> |
| 11 #else | 11 #else |
| 12 #include <unistd.h> | 12 #include <unistd.h> |
| 13 #endif | 13 #endif |
| 14 #include <fcntl.h> | 14 #include <fcntl.h> |
| 15 | 15 |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 17 #include "base/file_util.h" | 17 #include "base/file_util.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "media/filters/ffmpeg_common.h" | 19 #include "media/ffmpeg/ffmpeg_common.h" |
| 20 | 20 |
| 21 // warning C4996: 'open': The POSIX name for this item is deprecated. | 21 // warning C4996: 'open': The POSIX name for this item is deprecated. |
| 22 MSVC_PUSH_DISABLE_WARNING(4996) | 22 MSVC_PUSH_DISABLE_WARNING(4996) |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 int GetHandle(URLContext *h) { | 26 int GetHandle(URLContext *h) { |
| 27 return static_cast<int>(reinterpret_cast<intptr_t>(h->priv_data)); | 27 return static_cast<int>(reinterpret_cast<intptr_t>(h->priv_data)); |
| 28 } | 28 } |
| 29 | 29 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 &OpenContext, | 75 &OpenContext, |
| 76 &ReadContext, | 76 &ReadContext, |
| 77 &WriteContext, | 77 &WriteContext, |
| 78 &SeekContext, | 78 &SeekContext, |
| 79 &CloseContext, | 79 &CloseContext, |
| 80 NULL, // *next | 80 NULL, // *next |
| 81 NULL, // url_read_pause | 81 NULL, // url_read_pause |
| 82 NULL, // url_read_seek | 82 NULL, // url_read_seek |
| 83 &GetHandle | 83 &GetHandle |
| 84 }; | 84 }; |
| OLD | NEW |