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

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

Issue 176853004: Oilpan: move core/fileapi to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void DOMFileSystem::addPendingCallbacks() 100 void DOMFileSystem::addPendingCallbacks()
101 { 101 {
102 setPendingActivity(this); 102 setPendingActivity(this);
103 } 103 }
104 104
105 void DOMFileSystem::removePendingCallbacks() 105 void DOMFileSystem::removePendingCallbacks()
106 { 106 {
107 unsetPendingActivity(this); 107 unsetPendingActivity(this);
108 } 108 }
109 109
110 void DOMFileSystem::reportError(PassOwnPtr<ErrorCallback> errorCallback, PassRef Ptr<FileError> fileError) 110 void DOMFileSystem::reportError(PassOwnPtr<ErrorCallback> errorCallback, PassRef PtrWillBeRawPtr<FileError> fileError)
111 { 111 {
112 scheduleCallback(errorCallback, fileError); 112 scheduleCallback(errorCallback, fileError);
113 } 113 }
114 114
115 namespace { 115 namespace {
116 116
117 class ConvertToFileWriterCallback : public FileWriterBaseCallback { 117 class ConvertToFileWriterCallback : public FileWriterBaseCallback {
118 public: 118 public:
119 static PassOwnPtr<ConvertToFileWriterCallback> create(PassOwnPtr<FileWriterC allback> callback) 119 static PassOwnPtr<ConvertToFileWriterCallback> create(PassOwnPtr<FileWriterC allback> callback)
120 { 120 {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 } // namespace 198 } // namespace
199 199
200 void DOMFileSystem::createFile(const FileEntry* fileEntry, PassOwnPtr<FileCallba ck> successCallback, PassOwnPtr<ErrorCallback> errorCallback) 200 void DOMFileSystem::createFile(const FileEntry* fileEntry, PassOwnPtr<FileCallba ck> successCallback, PassOwnPtr<ErrorCallback> errorCallback)
201 { 201 {
202 KURL fileSystemURL = createFileSystemURL(fileEntry); 202 KURL fileSystemURL = createFileSystemURL(fileEntry);
203 fileSystem()->createSnapshotFileAndReadMetadata(fileSystemURL, SnapshotFileC allback::create(this, fileEntry->name(), fileSystemURL, successCallback, errorCa llback)); 203 fileSystem()->createSnapshotFileAndReadMetadata(fileSystemURL, SnapshotFileC allback::create(this, fileEntry->name(), fileSystemURL, successCallback, errorCa llback));
204 } 204 }
205 205
206 } // namespace WebCore 206 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/filesystem/DOMFileSystem.h ('k') | Source/modules/filesystem/DOMFileSystemBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698