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

Side by Side Diff: Source/modules/filesystem/LocalFileSystem.cpp

Issue 464353002: Cleanup blink:: prefix usage in Source/core/modules/[battery/*.cpp to indexeddb/*.cpp] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 4 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
« no previous file with comments | « Source/modules/filesystem/FileWriterSync.cpp ('k') | Source/modules/gamepad/Gamepad.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 PassRefPtrWillBeRawPtr<ExecutionContext> context, 155 PassRefPtrWillBeRawPtr<ExecutionContext> context,
156 FileSystemType type, 156 FileSystemType type,
157 PassRefPtr<CallbackWrapper> callbacks) 157 PassRefPtr<CallbackWrapper> callbacks)
158 { 158 {
159 if (!fileSystem()) { 159 if (!fileSystem()) {
160 fileSystemNotAvailable(context, callbacks); 160 fileSystemNotAvailable(context, callbacks);
161 return; 161 return;
162 } 162 }
163 163
164 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString()); 164 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString());
165 fileSystem()->openFileSystem(storagePartition, static_cast<blink::WebFileSys temType>(type), callbacks->release()); 165 fileSystem()->openFileSystem(storagePartition, static_cast<WebFileSystemType >(type), callbacks->release());
166 } 166 }
167 167
168 void LocalFileSystem::resolveURLInternal( 168 void LocalFileSystem::resolveURLInternal(
169 PassRefPtrWillBeRawPtr<ExecutionContext> context, 169 PassRefPtrWillBeRawPtr<ExecutionContext> context,
170 const KURL& fileSystemURL, 170 const KURL& fileSystemURL,
171 PassRefPtr<CallbackWrapper> callbacks) 171 PassRefPtr<CallbackWrapper> callbacks)
172 { 172 {
173 if (!fileSystem()) { 173 if (!fileSystem()) {
174 fileSystemNotAvailable(context, callbacks); 174 fileSystemNotAvailable(context, callbacks);
175 return; 175 return;
176 } 176 }
177 fileSystem()->resolveURL(fileSystemURL, callbacks->release()); 177 fileSystem()->resolveURL(fileSystemURL, callbacks->release());
178 } 178 }
179 179
180 void LocalFileSystem::deleteFileSystemInternal( 180 void LocalFileSystem::deleteFileSystemInternal(
181 PassRefPtrWillBeRawPtr<ExecutionContext> context, 181 PassRefPtrWillBeRawPtr<ExecutionContext> context,
182 FileSystemType type, 182 FileSystemType type,
183 PassRefPtr<CallbackWrapper> callbacks) 183 PassRefPtr<CallbackWrapper> callbacks)
184 { 184 {
185 if (!fileSystem()) { 185 if (!fileSystem()) {
186 fileSystemNotAvailable(context, callbacks); 186 fileSystemNotAvailable(context, callbacks);
187 return; 187 return;
188 } 188 }
189 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString()); 189 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString());
190 fileSystem()->deleteFileSystem(storagePartition, static_cast<blink::WebFileS ystemType>(type), callbacks->release()); 190 fileSystem()->deleteFileSystem(storagePartition, static_cast<WebFileSystemTy pe>(type), callbacks->release());
191 } 191 }
192 192
193 LocalFileSystem::LocalFileSystem(PassOwnPtr<FileSystemClient> client) 193 LocalFileSystem::LocalFileSystem(PassOwnPtr<FileSystemClient> client)
194 : m_client(client) 194 : m_client(client)
195 { 195 {
196 } 196 }
197 197
198 const char* LocalFileSystem::supplementName() 198 const char* LocalFileSystem::supplementName()
199 { 199 {
200 return "LocalFileSystem"; 200 return "LocalFileSystem";
(...skipping 12 matching lines...) Expand all
213 { 213 {
214 frame.provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem:: create(client)); 214 frame.provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem:: create(client));
215 } 215 }
216 216
217 void provideLocalFileSystemToWorker(WorkerClients* clients, PassOwnPtr<FileSyste mClient> client) 217 void provideLocalFileSystemToWorker(WorkerClients* clients, PassOwnPtr<FileSyste mClient> client)
218 { 218 {
219 clients->provideSupplement(LocalFileSystem::supplementName(), LocalFileSyste m::create(client)); 219 clients->provideSupplement(LocalFileSystem::supplementName(), LocalFileSyste m::create(client));
220 } 220 }
221 221
222 } // namespace blink 222 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/filesystem/FileWriterSync.cpp ('k') | Source/modules/gamepad/Gamepad.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698