| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 bool shouldScheduleCallback() const; | 68 bool shouldScheduleCallback() const; |
| 69 | 69 |
| 70 template <typename CB, typename CBArg> | 70 template <typename CB, typename CBArg> |
| 71 void handleEventOrScheduleCallback(RawPtr<CB>, CBArg*); | 71 void handleEventOrScheduleCallback(RawPtr<CB>, CBArg*); |
| 72 | 72 |
| 73 template <typename CB> | 73 template <typename CB> |
| 74 void handleEventOrScheduleCallback(RawPtr<CB>); | 74 void handleEventOrScheduleCallback(RawPtr<CB>); |
| 75 | 75 |
| 76 Persistent<ErrorCallback> m_errorCallback; | 76 Persistent<ErrorCallback> m_errorCallback; |
| 77 Persistent<DOMFileSystemBase> m_fileSystem; | 77 Persistent<DOMFileSystemBase> m_fileSystem; |
| 78 RefPtrWillBePersistent<ExecutionContext> m_executionContext; | 78 Persistent<ExecutionContext> m_executionContext; |
| 79 int m_asyncOperationId; | 79 int m_asyncOperationId; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 // Subclasses ---------------------------------------------------------------- | 82 // Subclasses ---------------------------------------------------------------- |
| 83 | 83 |
| 84 class EntryCallbacks final : public FileSystemCallbacksBase { | 84 class EntryCallbacks final : public FileSystemCallbacksBase { |
| 85 public: | 85 public: |
| 86 static PassOwnPtr<AsyncFileSystemCallbacks> create(EntryCallback*, ErrorCall
back*, ExecutionContext*, DOMFileSystemBase*, const String& expectedPath, bool i
sDirectory); | 86 static PassOwnPtr<AsyncFileSystemCallbacks> create(EntryCallback*, ErrorCall
back*, ExecutionContext*, DOMFileSystemBase*, const String& expectedPath, bool i
sDirectory); |
| 87 void didSucceed() override; | 87 void didSucceed() override; |
| 88 | 88 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 void didSucceed() override; | 167 void didSucceed() override; |
| 168 | 168 |
| 169 private: | 169 private: |
| 170 VoidCallbacks(VoidCallback*, ErrorCallback*, ExecutionContext*, DOMFileSyste
mBase*); | 170 VoidCallbacks(VoidCallback*, ErrorCallback*, ExecutionContext*, DOMFileSyste
mBase*); |
| 171 Persistent<VoidCallback> m_successCallback; | 171 Persistent<VoidCallback> m_successCallback; |
| 172 }; | 172 }; |
| 173 | 173 |
| 174 } // namespace blink | 174 } // namespace blink |
| 175 | 175 |
| 176 #endif // FileSystemCallbacks_h | 176 #endif // FileSystemCallbacks_h |
| OLD | NEW |