Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: Source/modules/filesystem/FileSystemCallbacks.h

Issue 23537011: FileAPI: Add WebFileSystem::resolveURL (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 115
116 private: 116 private:
117 ResolveURICallbacks(PassRefPtr<EntryCallback>, PassRefPtr<ErrorCallback>, Sc riptExecutionContext*, FileSystemType, const String& filePath); 117 ResolveURICallbacks(PassRefPtr<EntryCallback>, PassRefPtr<ErrorCallback>, Sc riptExecutionContext*);
118 RefPtr<EntryCallback> m_successCallback; 118 RefPtr<EntryCallback> m_successCallback;
119 RefPtr<ScriptExecutionContext> m_scriptExecutionContext; 119 RefPtr<ScriptExecutionContext> m_scriptExecutionContext;
120 FileSystemType m_type;
121 String m_filePath;
122 }; 120 };
123 121
124 class MetadataCallbacks : public FileSystemCallbacksBase { 122 class MetadataCallbacks : public FileSystemCallbacksBase {
125 public: 123 public:
126 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassRefPtr<MetadataCallba ck>, PassRefPtr<ErrorCallback>, DOMFileSystemBase*); 124 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassRefPtr<MetadataCallba ck>, PassRefPtr<ErrorCallback>, DOMFileSystemBase*);
127 virtual void didReadMetadata(const FileMetadata&); 125 virtual void didReadMetadata(const FileMetadata&);
128 126
129 private: 127 private:
130 MetadataCallbacks(PassRefPtr<MetadataCallback>, PassRefPtr<ErrorCallback>, D OMFileSystemBase*); 128 MetadataCallbacks(PassRefPtr<MetadataCallback>, PassRefPtr<ErrorCallback>, D OMFileSystemBase*);
131 RefPtr<MetadataCallback> m_successCallback; 129 RefPtr<MetadataCallback> m_successCallback;
(...skipping 16 matching lines...) Expand all
148 virtual void didSucceed(); 146 virtual void didSucceed();
149 147
150 private: 148 private:
151 VoidCallbacks(PassRefPtr<VoidCallback>, PassRefPtr<ErrorCallback>, DOMFileSy stemBase*); 149 VoidCallbacks(PassRefPtr<VoidCallback>, PassRefPtr<ErrorCallback>, DOMFileSy stemBase*);
152 RefPtr<VoidCallback> m_successCallback; 150 RefPtr<VoidCallback> m_successCallback;
153 }; 151 };
154 152
155 } // namespace 153 } // namespace
156 154
157 #endif // FileSystemCallbacks_h 155 #endif // FileSystemCallbacks_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698