| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 void didFail(int code) final; | 62 void didFail(int code) final; |
| 63 | 63 |
| 64 // Other callback methods are implemented by each subclass. | 64 // Other callback methods are implemented by each subclass. |
| 65 | 65 |
| 66 protected: | 66 protected: |
| 67 FileSystemCallbacksBase(ErrorCallback*, DOMFileSystemBase*, ExecutionContext
*); | 67 FileSystemCallbacksBase(ErrorCallback*, DOMFileSystemBase*, ExecutionContext
*); |
| 68 | 68 |
| 69 bool shouldScheduleCallback() const; | 69 bool shouldScheduleCallback() const; |
| 70 | 70 |
| 71 template <typename CB, typename CBArg> | 71 template <typename CB, typename CBArg> |
| 72 void handleEventOrScheduleCallback(CB*, CBArg*); | 72 void handleEventOrScheduleCallback(CB*, CBArg); |
| 73 | 73 |
| 74 template <typename CB> | 74 template <typename CB> |
| 75 void handleEventOrScheduleCallback(CB*); | 75 void handleEventOrScheduleCallback(CB*); |
| 76 | 76 |
| 77 Persistent<ErrorCallback> m_errorCallback; | 77 Persistent<ErrorCallback> m_errorCallback; |
| 78 Persistent<DOMFileSystemBase> m_fileSystem; | 78 Persistent<DOMFileSystemBase> m_fileSystem; |
| 79 Persistent<ExecutionContext> m_executionContext; | 79 Persistent<ExecutionContext> m_executionContext; |
| 80 int m_asyncOperationId; | 80 int m_asyncOperationId; |
| 81 }; | 81 }; |
| 82 | 82 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 void didSucceed() override; | 168 void didSucceed() override; |
| 169 | 169 |
| 170 private: | 170 private: |
| 171 VoidCallbacks(VoidCallback*, ErrorCallback*, ExecutionContext*, DOMFileSyste
mBase*); | 171 VoidCallbacks(VoidCallback*, ErrorCallback*, ExecutionContext*, DOMFileSyste
mBase*); |
| 172 Persistent<VoidCallback> m_successCallback; | 172 Persistent<VoidCallback> m_successCallback; |
| 173 }; | 173 }; |
| 174 | 174 |
| 175 } // namespace blink | 175 } // namespace blink |
| 176 | 176 |
| 177 #endif // FileSystemCallbacks_h | 177 #endif // FileSystemCallbacks_h |
| OLD | NEW |