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

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

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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 | Annotate | Revision Log
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 PassRefPtr<DOMFileSystem> DOMFileSystem::create(ExecutionContext* context, const String& name, FileSystemType type, const KURL& rootURL) 57 PassRefPtr<DOMFileSystem> DOMFileSystem::create(ExecutionContext* context, const String& name, FileSystemType type, const KURL& rootURL)
58 { 58 {
59 RefPtr<DOMFileSystem> fileSystem(adoptRef(new DOMFileSystem(context, name, t ype, rootURL))); 59 RefPtr<DOMFileSystem> fileSystem(adoptRef(new DOMFileSystem(context, name, t ype, rootURL)));
60 fileSystem->suspendIfNeeded(); 60 fileSystem->suspendIfNeeded();
61 return fileSystem.release(); 61 return fileSystem.release();
62 } 62 }
63 63
64 PassRefPtr<DOMFileSystem> DOMFileSystem::createIsolatedFileSystem(ExecutionConte xt* context, const String& filesystemId) 64 PassRefPtr<DOMFileSystem> DOMFileSystem::createIsolatedFileSystem(ExecutionConte xt* context, const String& filesystemId)
65 { 65 {
66 if (filesystemId.isEmpty()) 66 if (filesystemId.isEmpty())
67 return 0; 67 return nullptr;
68 68
69 StringBuilder filesystemName; 69 StringBuilder filesystemName;
70 filesystemName.append(createDatabaseIdentifierFromSecurityOrigin(context->se curityOrigin())); 70 filesystemName.append(createDatabaseIdentifierFromSecurityOrigin(context->se curityOrigin()));
71 filesystemName.append(":Isolated_"); 71 filesystemName.append(":Isolated_");
72 filesystemName.append(filesystemId); 72 filesystemName.append(filesystemId);
73 73
74 // The rootURL created here is going to be attached to each filesystem reque st and 74 // The rootURL created here is going to be attached to each filesystem reque st and
75 // is to be validated each time the request is being handled. 75 // is to be validated each time the request is being handled.
76 StringBuilder rootURL; 76 StringBuilder rootURL;
77 rootURL.append("filesystem:"); 77 rootURL.append("filesystem:");
(...skipping 119 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/encryptedmedia/MediaKeys.cpp ('k') | Source/modules/filesystem/DOMFileSystemSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698