| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #define AsyncFileSystemCallbacks_h | 32 #define AsyncFileSystemCallbacks_h |
| 33 | 33 |
| 34 #include "platform/FileMetadata.h" | 34 #include "platform/FileMetadata.h" |
| 35 #include "platform/FileSystemType.h" | 35 #include "platform/FileSystemType.h" |
| 36 #include "platform/blob/BlobData.h" | 36 #include "platform/blob/BlobData.h" |
| 37 #include "public/platform/WebFileWriter.h" | 37 #include "public/platform/WebFileWriter.h" |
| 38 #include "wtf/Assertions.h" | 38 #include "wtf/Assertions.h" |
| 39 #include "wtf/Noncopyable.h" | 39 #include "wtf/Noncopyable.h" |
| 40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace blink { |
| 43 | 43 |
| 44 class PLATFORM_EXPORT AsyncFileSystemCallbacks { | 44 class PLATFORM_EXPORT AsyncFileSystemCallbacks { |
| 45 WTF_MAKE_NONCOPYABLE(AsyncFileSystemCallbacks); | 45 WTF_MAKE_NONCOPYABLE(AsyncFileSystemCallbacks); |
| 46 public: | 46 public: |
| 47 AsyncFileSystemCallbacks() : m_blockUntilCompletion(false) { } | 47 AsyncFileSystemCallbacks() : m_blockUntilCompletion(false) { } |
| 48 | 48 |
| 49 // Called when a requested operation is completed successfully. | 49 // Called when a requested operation is completed successfully. |
| 50 virtual void didSucceed() { ASSERT_NOT_REACHED(); } | 50 virtual void didSucceed() { ASSERT_NOT_REACHED(); } |
| 51 | 51 |
| 52 // Called when a requested file system is opened. | 52 // Called when a requested file system is opened. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 virtual ~AsyncFileSystemCallbacks() { } | 88 virtual ~AsyncFileSystemCallbacks() { } |
| 89 | 89 |
| 90 private: | 90 private: |
| 91 bool m_blockUntilCompletion; | 91 bool m_blockUntilCompletion; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace | 94 } // namespace |
| 95 | 95 |
| 96 #endif // AsyncFileSystemCallbacks_h | 96 #endif // AsyncFileSystemCallbacks_h |
| OLD | NEW |