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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 private: | 104 private: |
105 FileSystemCallbacks(PassRefPtr<FileSystemCallback>, PassRefPtr<ErrorCallback
>, ScriptExecutionContext*, FileSystemType); | 105 FileSystemCallbacks(PassRefPtr<FileSystemCallback>, PassRefPtr<ErrorCallback
>, ScriptExecutionContext*, FileSystemType); |
106 RefPtr<FileSystemCallback> m_successCallback; | 106 RefPtr<FileSystemCallback> m_successCallback; |
107 RefPtr<ScriptExecutionContext> m_scriptExecutionContext; | 107 RefPtr<ScriptExecutionContext> m_scriptExecutionContext; |
108 FileSystemType m_type; | 108 FileSystemType m_type; |
109 }; | 109 }; |
110 | 110 |
111 class ResolveURICallbacks : public FileSystemCallbacksBase { | 111 class ResolveURICallbacks : public FileSystemCallbacksBase { |
112 public: | 112 public: |
113 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassRefPtr<EntryCallback>
, PassRefPtr<ErrorCallback>, ScriptExecutionContext*, FileSystemType, const Stri
ng& filePath); | 113 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassRefPtr<EntryCallback>
, PassRefPtr<ErrorCallback>, ScriptExecutionContext*); |
114 virtual void didOpenFileSystem(const String& name, const KURL& rootURL); | 114 virtual void didResolveURL(const String& name, const KURL& rootURL, FileSyst
emType, const String& filePath, bool isDirectry); |
115 virtual void didResolveURL(const String& name, const KURL& rootURL, FileSyst
emType, const String& filePath, bool isDirectory); | |
116 | 115 |
117 private: | 116 private: |
118 ResolveURICallbacks(PassRefPtr<EntryCallback>, PassRefPtr<ErrorCallback>, Sc
riptExecutionContext*, FileSystemType, const String& filePath); | 117 ResolveURICallbacks(PassRefPtr<EntryCallback>, PassRefPtr<ErrorCallback>, Sc
riptExecutionContext*); |
119 RefPtr<EntryCallback> m_successCallback; | 118 RefPtr<EntryCallback> m_successCallback; |
120 RefPtr<ScriptExecutionContext> m_scriptExecutionContext; | 119 RefPtr<ScriptExecutionContext> m_scriptExecutionContext; |
121 FileSystemType m_type; | |
122 String m_filePath; | |
123 }; | 120 }; |
124 | 121 |
125 class MetadataCallbacks : public FileSystemCallbacksBase { | 122 class MetadataCallbacks : public FileSystemCallbacksBase { |
126 public: | 123 public: |
127 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassRefPtr<MetadataCallba
ck>, PassRefPtr<ErrorCallback>, DOMFileSystemBase*); | 124 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassRefPtr<MetadataCallba
ck>, PassRefPtr<ErrorCallback>, DOMFileSystemBase*); |
128 virtual void didReadMetadata(const FileMetadata&); | 125 virtual void didReadMetadata(const FileMetadata&); |
129 | 126 |
130 private: | 127 private: |
131 MetadataCallbacks(PassRefPtr<MetadataCallback>, PassRefPtr<ErrorCallback>, D
OMFileSystemBase*); | 128 MetadataCallbacks(PassRefPtr<MetadataCallback>, PassRefPtr<ErrorCallback>, D
OMFileSystemBase*); |
132 RefPtr<MetadataCallback> m_successCallback; | 129 RefPtr<MetadataCallback> m_successCallback; |
(...skipping 16 matching lines...) Expand all Loading... |
149 virtual void didSucceed(); | 146 virtual void didSucceed(); |
150 | 147 |
151 private: | 148 private: |
152 VoidCallbacks(PassRefPtr<VoidCallback>, PassRefPtr<ErrorCallback>, DOMFileSy
stemBase*); | 149 VoidCallbacks(PassRefPtr<VoidCallback>, PassRefPtr<ErrorCallback>, DOMFileSy
stemBase*); |
153 RefPtr<VoidCallback> m_successCallback; | 150 RefPtr<VoidCallback> m_successCallback; |
154 }; | 151 }; |
155 | 152 |
156 } // namespace | 153 } // namespace |
157 | 154 |
158 #endif // FileSystemCallbacks_h | 155 #endif // FileSystemCallbacks_h |
OLD | NEW |