| 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 "media/cdm/ppapi/cdm_file_io_impl.h" | 5 #include "media/cdm/ppapi/cdm_file_io_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | |
| 8 #include <sstream> | 7 #include <sstream> |
| 9 | 8 |
| 10 #include "media/cdm/ppapi/cdm_logging.h" | 9 #include "media/cdm/ppapi/cdm_logging.h" |
| 11 #include "ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
| 12 #include "ppapi/cpp/dev/url_util_dev.h" | 11 #include "ppapi/cpp/dev/url_util_dev.h" |
| 13 | 12 |
| 14 namespace media { | 13 namespace media { |
| 15 | 14 |
| 16 // Arbitrary choice based on the following heuristic ideas: | 15 // Arbitrary choice based on the following heuristic ideas: |
| 17 // - not too big to avoid unnecessarily large memory allocation; | 16 // - not too big to avoid unnecessarily large memory allocation; |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 case READ_WHILE_IN_USE: | 537 case READ_WHILE_IN_USE: |
| 539 client_->OnReadComplete(cdm::FileIOClient::kInUse, NULL, 0); | 538 client_->OnReadComplete(cdm::FileIOClient::kInUse, NULL, 0); |
| 540 break; | 539 break; |
| 541 case WRITE_WHILE_IN_USE: | 540 case WRITE_WHILE_IN_USE: |
| 542 client_->OnWriteComplete(cdm::FileIOClient::kInUse); | 541 client_->OnWriteComplete(cdm::FileIOClient::kInUse); |
| 543 break; | 542 break; |
| 544 } | 543 } |
| 545 } | 544 } |
| 546 | 545 |
| 547 } // namespace media | 546 } // namespace media |
| OLD | NEW |