| OLD | NEW |
| 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 25 matching lines...) Expand all Loading... |
| 36 #include "modules/filesystem/DirectoryEntry.h" | 36 #include "modules/filesystem/DirectoryEntry.h" |
| 37 #include "modules/filesystem/ErrorCallback.h" | 37 #include "modules/filesystem/ErrorCallback.h" |
| 38 #include "modules/filesystem/FileCallback.h" | 38 #include "modules/filesystem/FileCallback.h" |
| 39 #include "modules/filesystem/FileEntry.h" | 39 #include "modules/filesystem/FileEntry.h" |
| 40 #include "modules/filesystem/FileSystemCallbacks.h" | 40 #include "modules/filesystem/FileSystemCallbacks.h" |
| 41 #include "modules/filesystem/FileWriter.h" | 41 #include "modules/filesystem/FileWriter.h" |
| 42 #include "modules/filesystem/FileWriterBaseCallback.h" | 42 #include "modules/filesystem/FileWriterBaseCallback.h" |
| 43 #include "modules/filesystem/FileWriterCallback.h" | 43 #include "modules/filesystem/FileWriterCallback.h" |
| 44 #include "modules/filesystem/MetadataCallback.h" | 44 #include "modules/filesystem/MetadataCallback.h" |
| 45 #include "platform/FileMetadata.h" | 45 #include "platform/FileMetadata.h" |
| 46 #include "platform/weborigin/DatabaseIdentifier.h" |
| 47 #include "platform/weborigin/SecurityOrigin.h" |
| 46 #include "public/platform/WebFileSystem.h" | 48 #include "public/platform/WebFileSystem.h" |
| 47 #include "public/platform/WebFileSystemCallbacks.h" | 49 #include "public/platform/WebFileSystemCallbacks.h" |
| 48 #include "weborigin/DatabaseIdentifier.h" | |
| 49 #include "weborigin/SecurityOrigin.h" | |
| 50 #include "wtf/OwnPtr.h" | 50 #include "wtf/OwnPtr.h" |
| 51 #include "wtf/text/StringBuilder.h" | 51 #include "wtf/text/StringBuilder.h" |
| 52 #include "wtf/text/WTFString.h" | 52 #include "wtf/text/WTFString.h" |
| 53 | 53 |
| 54 namespace WebCore { | 54 namespace WebCore { |
| 55 | 55 |
| 56 // static | 56 // static |
| 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))); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 193 |
| 194 } // namespace | 194 } // namespace |
| 195 | 195 |
| 196 void DOMFileSystem::createFile(const FileEntry* fileEntry, PassRefPtr<FileCallba
ck> successCallback, PassRefPtr<ErrorCallback> errorCallback) | 196 void DOMFileSystem::createFile(const FileEntry* fileEntry, PassRefPtr<FileCallba
ck> successCallback, PassRefPtr<ErrorCallback> errorCallback) |
| 197 { | 197 { |
| 198 KURL fileSystemURL = createFileSystemURL(fileEntry); | 198 KURL fileSystemURL = createFileSystemURL(fileEntry); |
| 199 fileSystem()->createSnapshotFileAndReadMetadata(fileSystemURL, SnapshotFileC
allback::create(this, fileEntry->name(), fileSystemURL, successCallback, errorCa
llback)); | 199 fileSystem()->createSnapshotFileAndReadMetadata(fileSystemURL, SnapshotFileC
allback::create(this, fileEntry->name(), fileSystemURL, successCallback, errorCa
llback)); |
| 200 } | 200 } |
| 201 | 201 |
| 202 } // namespace WebCore | 202 } // namespace WebCore |
| OLD | NEW |