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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 template <typename CB, typename CBArg> | 73 template <typename CB, typename CBArg> |
74 void handleEventOrScheduleCallback(PassOwnPtr<CB>, PassRefPtrWillBeRawPtr<CB
Arg>); | 74 void handleEventOrScheduleCallback(PassOwnPtr<CB>, PassRefPtrWillBeRawPtr<CB
Arg>); |
75 | 75 |
76 template <typename CB> | 76 template <typename CB> |
77 void handleEventOrScheduleCallback(PassOwnPtr<CB>); | 77 void handleEventOrScheduleCallback(PassOwnPtr<CB>); |
78 | 78 |
79 OwnPtr<ErrorCallback> m_errorCallback; | 79 OwnPtr<ErrorCallback> m_errorCallback; |
80 Persistent<DOMFileSystemBase> m_fileSystem; | 80 Persistent<DOMFileSystemBase> m_fileSystem; |
81 RefPtrWillBePersistent<ExecutionContext> m_executionContext; | 81 RefPtrWillBePersistent<ExecutionContext> m_executionContext; |
| 82 int m_asyncOperationId; |
82 }; | 83 }; |
83 | 84 |
84 // Subclasses ---------------------------------------------------------------- | 85 // Subclasses ---------------------------------------------------------------- |
85 | 86 |
86 class EntryCallbacks FINAL : public FileSystemCallbacksBase { | 87 class EntryCallbacks FINAL : public FileSystemCallbacksBase { |
87 public: | 88 public: |
88 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassOwnPtr<EntryCallback>
, PassOwnPtr<ErrorCallback>, ExecutionContext*, DOMFileSystemBase*, const String
& expectedPath, bool isDirectory); | 89 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassOwnPtr<EntryCallback>
, PassOwnPtr<ErrorCallback>, ExecutionContext*, DOMFileSystemBase*, const String
& expectedPath, bool isDirectory); |
89 virtual void didSucceed() OVERRIDE; | 90 virtual void didSucceed() OVERRIDE; |
90 | 91 |
91 private: | 92 private: |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 virtual void didSucceed() OVERRIDE; | 170 virtual void didSucceed() OVERRIDE; |
170 | 171 |
171 private: | 172 private: |
172 VoidCallbacks(PassOwnPtr<VoidCallback>, PassOwnPtr<ErrorCallback>, Execution
Context*, DOMFileSystemBase*); | 173 VoidCallbacks(PassOwnPtr<VoidCallback>, PassOwnPtr<ErrorCallback>, Execution
Context*, DOMFileSystemBase*); |
173 OwnPtr<VoidCallback> m_successCallback; | 174 OwnPtr<VoidCallback> m_successCallback; |
174 }; | 175 }; |
175 | 176 |
176 } // namespace | 177 } // namespace |
177 | 178 |
178 #endif // FileSystemCallbacks_h | 179 #endif // FileSystemCallbacks_h |
OLD | NEW |