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

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

Issue 178333009: Handle has_more correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove unneeded space Created 6 years, 9 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // Actual FileSystem API implementations. All the validity checks on virtual paths are done at this level. 106 // Actual FileSystem API implementations. All the validity checks on virtual paths are done at this level.
107 void getMetadata(const EntryBase*, PassOwnPtr<MetadataCallback>, PassOwnPtr< ErrorCallback>, SynchronousType = Asynchronous); 107 void getMetadata(const EntryBase*, PassOwnPtr<MetadataCallback>, PassOwnPtr< ErrorCallback>, SynchronousType = Asynchronous);
108 void move(const EntryBase* source, EntryBase* parent, const String& name, Pa ssOwnPtr<EntryCallback>, PassOwnPtr<ErrorCallback>, SynchronousType = Asynchrono us); 108 void move(const EntryBase* source, EntryBase* parent, const String& name, Pa ssOwnPtr<EntryCallback>, PassOwnPtr<ErrorCallback>, SynchronousType = Asynchrono us);
109 void copy(const EntryBase* source, EntryBase* parent, const String& name, Pa ssOwnPtr<EntryCallback>, PassOwnPtr<ErrorCallback>, SynchronousType = Asynchrono us); 109 void copy(const EntryBase* source, EntryBase* parent, const String& name, Pa ssOwnPtr<EntryCallback>, PassOwnPtr<ErrorCallback>, SynchronousType = Asynchrono us);
110 void remove(const EntryBase*, PassOwnPtr<VoidCallback>, PassOwnPtr<ErrorCall back>, SynchronousType = Asynchronous); 110 void remove(const EntryBase*, PassOwnPtr<VoidCallback>, PassOwnPtr<ErrorCall back>, SynchronousType = Asynchronous);
111 void removeRecursively(const EntryBase*, PassOwnPtr<VoidCallback>, PassOwnPt r<ErrorCallback>, SynchronousType = Asynchronous); 111 void removeRecursively(const EntryBase*, PassOwnPtr<VoidCallback>, PassOwnPt r<ErrorCallback>, SynchronousType = Asynchronous);
112 void getParent(const EntryBase*, PassOwnPtr<EntryCallback>, PassOwnPtr<Error Callback>); 112 void getParent(const EntryBase*, PassOwnPtr<EntryCallback>, PassOwnPtr<Error Callback>);
113 void getFile(const EntryBase*, const String& path, const FileSystemFlags&, P assOwnPtr<EntryCallback>, PassOwnPtr<ErrorCallback>, SynchronousType = Asynchron ous); 113 void getFile(const EntryBase*, const String& path, const FileSystemFlags&, P assOwnPtr<EntryCallback>, PassOwnPtr<ErrorCallback>, SynchronousType = Asynchron ous);
114 void getDirectory(const EntryBase*, const String& path, const FileSystemFlag s&, PassOwnPtr<EntryCallback>, PassOwnPtr<ErrorCallback>, SynchronousType = Asyn chronous); 114 void getDirectory(const EntryBase*, const String& path, const FileSystemFlag s&, PassOwnPtr<EntryCallback>, PassOwnPtr<ErrorCallback>, SynchronousType = Asyn chronous);
115 bool readDirectory(PassRefPtr<DirectoryReaderBase>, const String& path, Pass OwnPtr<EntriesCallback>, PassOwnPtr<ErrorCallback>, SynchronousType = Asynchrono us); 115 int readDirectory(PassRefPtr<DirectoryReaderBase>, const String& path, PassO wnPtr<EntriesCallback>, PassOwnPtr<ErrorCallback>, SynchronousType = Asynchronou s);
116 bool waitForAdditionalResult(int callbacksId);
116 117
117 protected: 118 protected:
118 DOMFileSystemBase(ExecutionContext*, const String& name, FileSystemType, con st KURL& rootURL); 119 DOMFileSystemBase(ExecutionContext*, const String& name, FileSystemType, con st KURL& rootURL);
119 friend class DOMFileSystemSync; 120 friend class DOMFileSystemSync;
120 121
121 ExecutionContext* m_context; 122 ExecutionContext* m_context;
122 String m_name; 123 String m_name;
123 FileSystemType m_type; 124 FileSystemType m_type;
124 KURL m_filesystemRootURL; 125 KURL m_filesystemRootURL;
125 bool m_clonable; 126 bool m_clonable;
126 }; 127 };
127 128
128 inline bool operator==(const DOMFileSystemBase& a, const DOMFileSystemBase& b) { return a.name() == b.name() && a.type() == b.type() && a.rootURL() == b.rootURL (); } 129 inline bool operator==(const DOMFileSystemBase& a, const DOMFileSystemBase& b) { return a.name() == b.name() && a.type() == b.type() && a.rootURL() == b.rootURL (); }
129 130
130 } // namespace WebCore 131 } // namespace WebCore
131 132
132 #endif // DOMFileSystemBase_h 133 #endif // DOMFileSystemBase_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/filesystem/DOMFileSystemBase.cpp » ('j') | Source/modules/filesystem/DirectoryReader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698