OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/plugins/ppapi/ppb_file_io_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_file_io_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual void DidSucceed() OVERRIDE { | 55 virtual void DidSucceed() OVERRIDE { |
56 callback_.Run(base::PLATFORM_FILE_OK); | 56 callback_.Run(base::PLATFORM_FILE_OK); |
57 } | 57 } |
58 | 58 |
59 virtual void DidReadMetadata( | 59 virtual void DidReadMetadata( |
60 const base::PlatformFileInfo& file_info, | 60 const base::PlatformFileInfo& file_info, |
61 const FilePath& platform_path) OVERRIDE { | 61 const FilePath& platform_path) OVERRIDE { |
62 NOTREACHED(); | 62 NOTREACHED(); |
63 } | 63 } |
64 | 64 |
| 65 virtual void DidCreateSnapshotFile( |
| 66 const base::PlatformFileInfo& file_info, |
| 67 const FilePath& platform_path) OVERRIDE { |
| 68 NOTREACHED(); |
| 69 } |
| 70 |
65 virtual void DidReadDirectory( | 71 virtual void DidReadDirectory( |
66 const std::vector<base::FileUtilProxy::Entry>& entries, | 72 const std::vector<base::FileUtilProxy::Entry>& entries, |
67 bool has_more) OVERRIDE { | 73 bool has_more) OVERRIDE { |
68 NOTREACHED(); | 74 NOTREACHED(); |
69 } | 75 } |
70 | 76 |
71 virtual void DidOpenFileSystem(const std::string& name, | 77 virtual void DidOpenFileSystem(const std::string& name, |
72 const GURL& root) OVERRIDE { | 78 const GURL& root) OVERRIDE { |
73 NOTREACHED(); | 79 NOTREACHED(); |
74 } | 80 } |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 if (error_code != base::PLATFORM_FILE_OK) { | 428 if (error_code != base::PLATFORM_FILE_OK) { |
423 RunAndRemoveFirstPendingCallback( | 429 RunAndRemoveFirstPendingCallback( |
424 ::ppapi::PlatformFileErrorToPepperError(error_code)); | 430 ::ppapi::PlatformFileErrorToPepperError(error_code)); |
425 } else { | 431 } else { |
426 RunAndRemoveFirstPendingCallback(bytes_written); | 432 RunAndRemoveFirstPendingCallback(bytes_written); |
427 } | 433 } |
428 } | 434 } |
429 | 435 |
430 } // namespace ppapi | 436 } // namespace ppapi |
431 } // namespace webkit | 437 } // namespace webkit |
OLD | NEW |