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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 FileSystemCallbacks(PassRefPtr<FileSystemCallback>, PassRefPtr<ErrorCallback
>, ScriptExecutionContext*, FileSystemType); | 116 FileSystemCallbacks(PassRefPtr<FileSystemCallback>, PassRefPtr<ErrorCallback
>, ScriptExecutionContext*, FileSystemType); |
117 RefPtr<FileSystemCallback> m_successCallback; | 117 RefPtr<FileSystemCallback> m_successCallback; |
118 RefPtr<ScriptExecutionContext> m_scriptExecutionContext; | 118 RefPtr<ScriptExecutionContext> m_scriptExecutionContext; |
119 FileSystemType m_type; | 119 FileSystemType m_type; |
120 }; | 120 }; |
121 | 121 |
122 class ResolveURICallbacks : public FileSystemCallbacksBase { | 122 class ResolveURICallbacks : public FileSystemCallbacksBase { |
123 public: | 123 public: |
124 static PassOwnPtr<ResolveURICallbacks> create(PassRefPtr<EntryCallback>, Pas
sRefPtr<ErrorCallback>, ScriptExecutionContext*, FileSystemType, const String& f
ilePath); | 124 static PassOwnPtr<ResolveURICallbacks> create(PassRefPtr<EntryCallback>, Pas
sRefPtr<ErrorCallback>, ScriptExecutionContext*, FileSystemType, const String& f
ilePath); |
125 virtual void didOpenFileSystem(const String& name, const KURL& rootURL, Pass
OwnPtr<AsyncFileSystem>); | 125 virtual void didOpenFileSystem(const String& name, const KURL& rootURL, Pass
OwnPtr<AsyncFileSystem>); |
| 126 virtual void didResolveURL(const String& name, const KURL& rootURL, const St
ring& filePath, bool isDirectry, PassOwnPtr<AsyncFileSystem>); |
126 | 127 |
127 private: | 128 private: |
128 ResolveURICallbacks(PassRefPtr<EntryCallback>, PassRefPtr<ErrorCallback>, Sc
riptExecutionContext*, FileSystemType, const String& filePath); | 129 ResolveURICallbacks(PassRefPtr<EntryCallback>, PassRefPtr<ErrorCallback>, Sc
riptExecutionContext*, FileSystemType, const String& filePath); |
129 RefPtr<EntryCallback> m_successCallback; | 130 RefPtr<EntryCallback> m_successCallback; |
130 RefPtr<ScriptExecutionContext> m_scriptExecutionContext; | 131 RefPtr<ScriptExecutionContext> m_scriptExecutionContext; |
131 FileSystemType m_type; | 132 FileSystemType m_type; |
132 String m_filePath; | 133 String m_filePath; |
133 }; | 134 }; |
134 | 135 |
135 class MetadataCallbacks : public FileSystemCallbacksBase { | 136 class MetadataCallbacks : public FileSystemCallbacksBase { |
(...skipping 23 matching lines...) Expand all Loading... |
159 virtual void didSucceed(); | 160 virtual void didSucceed(); |
160 | 161 |
161 private: | 162 private: |
162 VoidCallbacks(PassRefPtr<VoidCallback>, PassRefPtr<ErrorCallback>); | 163 VoidCallbacks(PassRefPtr<VoidCallback>, PassRefPtr<ErrorCallback>); |
163 RefPtr<VoidCallback> m_successCallback; | 164 RefPtr<VoidCallback> m_successCallback; |
164 }; | 165 }; |
165 | 166 |
166 } // namespace | 167 } // namespace |
167 | 168 |
168 #endif // FileSystemCallbacks_h | 169 #endif // FileSystemCallbacks_h |
OLD | NEW |