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 20 matching lines...) Expand all Loading... |
31 #ifndef WebFileSystemCallbacks_h | 31 #ifndef WebFileSystemCallbacks_h |
32 #define WebFileSystemCallbacks_h | 32 #define WebFileSystemCallbacks_h |
33 | 33 |
34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
35 #include "WebFileError.h" | 35 #include "WebFileError.h" |
36 #include "WebFileSystemEntry.h" | 36 #include "WebFileSystemEntry.h" |
37 #include "WebFileSystemType.h" | 37 #include "WebFileSystemType.h" |
38 #include "WebPrivatePtr.h" | 38 #include "WebPrivatePtr.h" |
39 #include "WebVector.h" | 39 #include "WebVector.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace blink { |
42 class AsyncFileSystemCallbacks; | 42 class AsyncFileSystemCallbacks; |
43 } | 43 } |
44 namespace WTF { template <typename T> class PassOwnPtr; } | 44 namespace WTF { template <typename T> class PassOwnPtr; } |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 struct WebFileInfo; | 48 struct WebFileInfo; |
49 class WebFileWriter; | 49 class WebFileWriter; |
50 class WebString; | 50 class WebString; |
51 class WebURL; | 51 class WebURL; |
52 class WebFileSystemCallbacksPrivate; | 52 class WebFileSystemCallbacksPrivate; |
53 | 53 |
54 class WebFileSystemCallbacks { | 54 class WebFileSystemCallbacks { |
55 public: | 55 public: |
56 ~WebFileSystemCallbacks() { reset(); } | 56 ~WebFileSystemCallbacks() { reset(); } |
57 WebFileSystemCallbacks() { } | 57 WebFileSystemCallbacks() { } |
58 WebFileSystemCallbacks(const WebFileSystemCallbacks& c) { assign(c); } | 58 WebFileSystemCallbacks(const WebFileSystemCallbacks& c) { assign(c); } |
59 WebFileSystemCallbacks& operator=(const WebFileSystemCallbacks& c) | 59 WebFileSystemCallbacks& operator=(const WebFileSystemCallbacks& c) |
60 { | 60 { |
61 assign(c); | 61 assign(c); |
62 return *this; | 62 return *this; |
63 } | 63 } |
64 | 64 |
65 BLINK_PLATFORM_EXPORT void reset(); | 65 BLINK_PLATFORM_EXPORT void reset(); |
66 BLINK_PLATFORM_EXPORT void assign(const WebFileSystemCallbacks&); | 66 BLINK_PLATFORM_EXPORT void assign(const WebFileSystemCallbacks&); |
67 | 67 |
68 #if INSIDE_BLINK | 68 #if INSIDE_BLINK |
69 BLINK_PLATFORM_EXPORT WebFileSystemCallbacks(const WTF::PassOwnPtr<WebCore::
AsyncFileSystemCallbacks>&); | 69 BLINK_PLATFORM_EXPORT WebFileSystemCallbacks(const WTF::PassOwnPtr<blink::As
yncFileSystemCallbacks>&); |
70 #endif | 70 #endif |
71 | 71 |
72 // Callback for WebFileSystem's various operations that don't require | 72 // Callback for WebFileSystem's various operations that don't require |
73 // return values. | 73 // return values. |
74 BLINK_PLATFORM_EXPORT void didSucceed(); | 74 BLINK_PLATFORM_EXPORT void didSucceed(); |
75 | 75 |
76 // Callback for WebFileSystem::readMetadata. Called with the file metadata | 76 // Callback for WebFileSystem::readMetadata. Called with the file metadata |
77 // for the requested path. | 77 // for the requested path. |
78 BLINK_PLATFORM_EXPORT void didReadMetadata(const WebFileInfo&); | 78 BLINK_PLATFORM_EXPORT void didReadMetadata(const WebFileInfo&); |
79 | 79 |
(...skipping 29 matching lines...) Expand all Loading... |
109 // is fullfilled. | 109 // is fullfilled. |
110 BLINK_PLATFORM_EXPORT bool shouldBlockUntilCompletion() const; | 110 BLINK_PLATFORM_EXPORT bool shouldBlockUntilCompletion() const; |
111 | 111 |
112 private: | 112 private: |
113 WebPrivatePtr<WebFileSystemCallbacksPrivate> m_private; | 113 WebPrivatePtr<WebFileSystemCallbacksPrivate> m_private; |
114 }; | 114 }; |
115 | 115 |
116 } // namespace blink | 116 } // namespace blink |
117 | 117 |
118 #endif | 118 #endif |
OLD | NEW |