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

Side by Side Diff: Source/modules/filesystem/FileSystemCallbacks.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
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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 return adoptPtr(new FileWriterBaseCallbacks(fileWriter, successCallback, err orCallback, context)); 265 return adoptPtr(new FileWriterBaseCallbacks(fileWriter, successCallback, err orCallback, context));
266 } 266 }
267 267
268 FileWriterBaseCallbacks::FileWriterBaseCallbacks(PassRefPtrWillBeRawPtr<FileWrit erBase> fileWriter, PassOwnPtr<FileWriterBaseCallback> successCallback, PassOwnP tr<ErrorCallback> errorCallback, ExecutionContext* context) 268 FileWriterBaseCallbacks::FileWriterBaseCallbacks(PassRefPtrWillBeRawPtr<FileWrit erBase> fileWriter, PassOwnPtr<FileWriterBaseCallback> successCallback, PassOwnP tr<ErrorCallback> errorCallback, ExecutionContext* context)
269 : FileSystemCallbacksBase(errorCallback, nullptr, context) 269 : FileSystemCallbacksBase(errorCallback, nullptr, context)
270 , m_fileWriter(fileWriter.get()) 270 , m_fileWriter(fileWriter.get())
271 , m_successCallback(successCallback) 271 , m_successCallback(successCallback)
272 { 272 {
273 } 273 }
274 274
275 void FileWriterBaseCallbacks::didCreateFileWriter(PassOwnPtr<blink::WebFileWrite r> fileWriter, long long length) 275 void FileWriterBaseCallbacks::didCreateFileWriter(PassOwnPtr<WebFileWriter> file Writer, long long length)
276 { 276 {
277 m_fileWriter->initialize(fileWriter, length); 277 m_fileWriter->initialize(fileWriter, length);
278 if (m_successCallback) 278 if (m_successCallback)
279 handleEventOrScheduleCallback(m_successCallback.release(), m_fileWriter. release()); 279 handleEventOrScheduleCallback(m_successCallback.release(), m_fileWriter. release());
280 } 280 }
281 281
282 // SnapshotFileCallback ------------------------------------------------------- 282 // SnapshotFileCallback -------------------------------------------------------
283 283
284 PassOwnPtr<AsyncFileSystemCallbacks> SnapshotFileCallback::create(DOMFileSystemB ase* filesystem, const String& name, const KURL& url, PassOwnPtr<FileCallback> s uccessCallback, PassOwnPtr<ErrorCallback> errorCallback, ExecutionContext* conte xt) 284 PassOwnPtr<AsyncFileSystemCallbacks> SnapshotFileCallback::create(DOMFileSystemB ase* filesystem, const String& name, const KURL& url, PassOwnPtr<FileCallback> s uccessCallback, PassOwnPtr<ErrorCallback> errorCallback, ExecutionContext* conte xt)
285 { 285 {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 , m_successCallback(successCallback) 331 , m_successCallback(successCallback)
332 { 332 {
333 } 333 }
334 334
335 void VoidCallbacks::didSucceed() 335 void VoidCallbacks::didSucceed()
336 { 336 {
337 if (m_successCallback) 337 if (m_successCallback)
338 handleEventOrScheduleCallback(m_successCallback.release()); 338 handleEventOrScheduleCallback(m_successCallback.release());
339 } 339 }
340 340
341 } // namespace 341 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/filesystem/DOMFileSystemBase.cpp ('k') | Source/modules/filesystem/FileWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698