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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 bool shouldScheduleCallback() const; | 67 bool shouldScheduleCallback() const; |
68 | 68 |
69 template <typename CB, typename CBArg> | 69 template <typename CB, typename CBArg> |
70 void handleEventOrScheduleCallback(PassOwnPtr<CB>, PassRefPtrWillBeRawPtr<CB
Arg>); | 70 void handleEventOrScheduleCallback(PassOwnPtr<CB>, PassRefPtrWillBeRawPtr<CB
Arg>); |
71 | 71 |
72 template <typename CB> | 72 template <typename CB> |
73 void handleEventOrScheduleCallback(PassOwnPtr<CB>); | 73 void handleEventOrScheduleCallback(PassOwnPtr<CB>); |
74 | 74 |
75 OwnPtr<ErrorCallback> m_errorCallback; | 75 OwnPtr<ErrorCallback> m_errorCallback; |
76 RefPtrWillBePersistent<DOMFileSystemBase> m_fileSystem; | 76 RefPtrWillBePersistent<DOMFileSystemBase> m_fileSystem; |
77 RefPtr<ExecutionContext> m_executionContext; | 77 RefPtrWillBePersistent<ExecutionContext> m_executionContext; |
78 }; | 78 }; |
79 | 79 |
80 // Subclasses ---------------------------------------------------------------- | 80 // Subclasses ---------------------------------------------------------------- |
81 | 81 |
82 class EntryCallbacks FINAL : public FileSystemCallbacksBase { | 82 class EntryCallbacks FINAL : public FileSystemCallbacksBase { |
83 public: | 83 public: |
84 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassOwnPtr<EntryCallback>
, PassOwnPtr<ErrorCallback>, ExecutionContext*, PassRefPtrWillBeRawPtr<DOMFileSy
stemBase>, const String& expectedPath, bool isDirectory); | 84 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassOwnPtr<EntryCallback>
, PassOwnPtr<ErrorCallback>, ExecutionContext*, PassRefPtrWillBeRawPtr<DOMFileSy
stemBase>, const String& expectedPath, bool isDirectory); |
85 virtual void didSucceed() OVERRIDE; | 85 virtual void didSucceed() OVERRIDE; |
86 | 86 |
87 private: | 87 private: |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 virtual void didSucceed() OVERRIDE; | 153 virtual void didSucceed() OVERRIDE; |
154 | 154 |
155 private: | 155 private: |
156 VoidCallbacks(PassOwnPtr<VoidCallback>, PassOwnPtr<ErrorCallback>, Execution
Context*, PassRefPtrWillBeRawPtr<DOMFileSystemBase>); | 156 VoidCallbacks(PassOwnPtr<VoidCallback>, PassOwnPtr<ErrorCallback>, Execution
Context*, PassRefPtrWillBeRawPtr<DOMFileSystemBase>); |
157 OwnPtr<VoidCallback> m_successCallback; | 157 OwnPtr<VoidCallback> m_successCallback; |
158 }; | 158 }; |
159 | 159 |
160 } // namespace | 160 } // namespace |
161 | 161 |
162 #endif // FileSystemCallbacks_h | 162 #endif // FileSystemCallbacks_h |
OLD | NEW |