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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/FileSystemCallbacks.cpp

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 { 242 {
243 } 243 }
244 244
245 void ResolveURICallbacks::didResolveURL(const String& name, const KURL& rootURL, FileSystemType type, const String& filePath, bool isDirectory) 245 void ResolveURICallbacks::didResolveURL(const String& name, const KURL& rootURL, FileSystemType type, const String& filePath, bool isDirectory)
246 { 246 {
247 DOMFileSystem* filesystem = DOMFileSystem::create(m_executionContext.get(), name, type, rootURL); 247 DOMFileSystem* filesystem = DOMFileSystem::create(m_executionContext.get(), name, type, rootURL);
248 DirectoryEntry* root = filesystem->root(); 248 DirectoryEntry* root = filesystem->root();
249 249
250 String absolutePath; 250 String absolutePath;
251 if (!DOMFileSystemBase::pathToAbsolutePath(type, root, filePath, absolutePat h)) { 251 if (!DOMFileSystemBase::pathToAbsolutePath(type, root, filePath, absolutePat h)) {
252 invokeOrScheduleCallback(m_errorCallback.release(), FileError::INVALID_M ODIFICATION_ERR); 252 invokeOrScheduleCallback(m_errorCallback.release(), FileError::kInvalidM odificationErr);
253 return; 253 return;
254 } 254 }
255 255
256 if (isDirectory) 256 if (isDirectory)
257 handleEventOrScheduleCallback(m_successCallback.release(), DirectoryEntr y::create(filesystem, absolutePath)); 257 handleEventOrScheduleCallback(m_successCallback.release(), DirectoryEntr y::create(filesystem, absolutePath));
258 else 258 else
259 handleEventOrScheduleCallback(m_successCallback.release(), FileEntry::cr eate(filesystem, absolutePath)); 259 handleEventOrScheduleCallback(m_successCallback.release(), FileEntry::cr eate(filesystem, absolutePath));
260 } 260 }
261 261
262 // MetadataCallbacks ---------------------------------------------------------- 262 // MetadataCallbacks ----------------------------------------------------------
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 { 340 {
341 } 341 }
342 342
343 void VoidCallbacks::didSucceed() 343 void VoidCallbacks::didSucceed()
344 { 344 {
345 if (m_successCallback) 345 if (m_successCallback)
346 handleEventOrScheduleCallback(m_successCallback.release()); 346 handleEventOrScheduleCallback(m_successCallback.release());
347 } 347 }
348 348
349 } // namespace blink 349 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698