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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 void move(const EntryBase* source, EntryBase* parent, const String& name, En
tryCallback*, ErrorCallback*, SynchronousType = Asynchronous); | 110 void move(const EntryBase* source, EntryBase* parent, const String& name, En
tryCallback*, ErrorCallback*, SynchronousType = Asynchronous); |
111 void copy(const EntryBase* source, EntryBase* parent, const String& name, En
tryCallback*, ErrorCallback*, SynchronousType = Asynchronous); | 111 void copy(const EntryBase* source, EntryBase* parent, const String& name, En
tryCallback*, ErrorCallback*, SynchronousType = Asynchronous); |
112 void remove(const EntryBase*, VoidCallback*, ErrorCallback*, SynchronousType
= Asynchronous); | 112 void remove(const EntryBase*, VoidCallback*, ErrorCallback*, SynchronousType
= Asynchronous); |
113 void removeRecursively(const EntryBase*, VoidCallback*, ErrorCallback*, Sync
hronousType = Asynchronous); | 113 void removeRecursively(const EntryBase*, VoidCallback*, ErrorCallback*, Sync
hronousType = Asynchronous); |
114 void getParent(const EntryBase*, EntryCallback*, ErrorCallback*); | 114 void getParent(const EntryBase*, EntryCallback*, ErrorCallback*); |
115 void getFile(const EntryBase*, const String& path, const FileSystemFlags&, E
ntryCallback*, ErrorCallback*, SynchronousType = Asynchronous); | 115 void getFile(const EntryBase*, const String& path, const FileSystemFlags&, E
ntryCallback*, ErrorCallback*, SynchronousType = Asynchronous); |
116 void getDirectory(const EntryBase*, const String& path, const FileSystemFlag
s&, EntryCallback*, ErrorCallback*, SynchronousType = Asynchronous); | 116 void getDirectory(const EntryBase*, const String& path, const FileSystemFlag
s&, EntryCallback*, ErrorCallback*, SynchronousType = Asynchronous); |
117 int readDirectory(DirectoryReaderBase*, const String& path, EntriesCallback*
, ErrorCallback*, SynchronousType = Asynchronous); | 117 int readDirectory(DirectoryReaderBase*, const String& path, EntriesCallback*
, ErrorCallback*, SynchronousType = Asynchronous); |
118 bool waitForAdditionalResult(int callbacksId); | 118 bool waitForAdditionalResult(int callbacksId); |
119 | 119 |
120 DEFINE_INLINE_VIRTUAL_TRACE() { } | 120 DECLARE_VIRTUAL_TRACE(); |
121 | 121 |
122 protected: | 122 protected: |
123 DOMFileSystemBase(ExecutionContext*, const String& name, FileSystemType, con
st KURL& rootURL); | 123 DOMFileSystemBase(ExecutionContext*, const String& name, FileSystemType, con
st KURL& rootURL); |
124 | 124 |
125 friend class DOMFileSystemBaseTest; | 125 friend class DOMFileSystemBaseTest; |
126 friend class DOMFileSystemSync; | 126 friend class DOMFileSystemSync; |
127 | 127 |
128 ExecutionContext* m_context; | 128 RawPtrWillBeMember<ExecutionContext> m_context; |
129 String m_name; | 129 String m_name; |
130 FileSystemType m_type; | 130 FileSystemType m_type; |
131 KURL m_filesystemRootURL; | 131 KURL m_filesystemRootURL; |
132 bool m_clonable; | 132 bool m_clonable; |
133 | 133 |
134 private: | 134 private: |
135 // This does the same thing with encodeWithURLEscapeSequences defined in | 135 // This does the same thing with encodeWithURLEscapeSequences defined in |
136 // KURL.h other than the unicode normalization (NFC). | 136 // KURL.h other than the unicode normalization (NFC). |
137 // See http://crbug.com/252551 for more details. | 137 // See http://crbug.com/252551 for more details. |
138 static String encodeFilePathAsURIComponent(const String& fullPath); | 138 static String encodeFilePathAsURIComponent(const String& fullPath); |
139 }; | 139 }; |
140 | 140 |
141 inline bool operator==(const DOMFileSystemBase& a, const DOMFileSystemBase& b) {
return a.name() == b.name() && a.type() == b.type() && a.rootURL() == b.rootURL
(); } | 141 inline bool operator==(const DOMFileSystemBase& a, const DOMFileSystemBase& b) {
return a.name() == b.name() && a.type() == b.type() && a.rootURL() == b.rootURL
(); } |
142 | 142 |
143 } // namespace blink | 143 } // namespace blink |
144 | 144 |
145 #endif // DOMFileSystemBase_h | 145 #endif // DOMFileSystemBase_h |
OLD | NEW |