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

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

Issue 54053006: Move weborigin/ under platform/ so that it may someday call platform APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 28 matching lines...) Expand all
39 #include "modules/filesystem/FileCallback.h" 39 #include "modules/filesystem/FileCallback.h"
40 #include "modules/filesystem/FileEntry.h" 40 #include "modules/filesystem/FileEntry.h"
41 #include "modules/filesystem/FileSystemCallbacks.h" 41 #include "modules/filesystem/FileSystemCallbacks.h"
42 #include "modules/filesystem/FileWriter.h" 42 #include "modules/filesystem/FileWriter.h"
43 #include "modules/filesystem/FileWriterBaseCallback.h" 43 #include "modules/filesystem/FileWriterBaseCallback.h"
44 #include "modules/filesystem/FileWriterCallback.h" 44 #include "modules/filesystem/FileWriterCallback.h"
45 #include "modules/filesystem/MetadataCallback.h" 45 #include "modules/filesystem/MetadataCallback.h"
46 #include "platform/FileMetadata.h" 46 #include "platform/FileMetadata.h"
47 #include "public/platform/WebFileSystem.h" 47 #include "public/platform/WebFileSystem.h"
48 #include "public/platform/WebFileSystemCallbacks.h" 48 #include "public/platform/WebFileSystemCallbacks.h"
49 #include "weborigin/DatabaseIdentifier.h" 49 #include "platform/weborigin/DatabaseIdentifier.h"
50 #include "weborigin/SecurityOrigin.h" 50 #include "platform/weborigin/SecurityOrigin.h"
51 #include "wtf/OwnPtr.h" 51 #include "wtf/OwnPtr.h"
52 #include "wtf/text/StringBuilder.h" 52 #include "wtf/text/StringBuilder.h"
53 #include "wtf/text/WTFString.h" 53 #include "wtf/text/WTFString.h"
54 54
55 namespace WebCore { 55 namespace WebCore {
56 56
57 // static 57 // static
58 PassRefPtr<DOMFileSystem> DOMFileSystem::create(ExecutionContext* context, const String& name, FileSystemType type, const KURL& rootURL) 58 PassRefPtr<DOMFileSystem> DOMFileSystem::create(ExecutionContext* context, const String& name, FileSystemType type, const KURL& rootURL)
59 { 59 {
60 RefPtr<DOMFileSystem> fileSystem(adoptRef(new DOMFileSystem(context, name, t ype, rootURL))); 60 RefPtr<DOMFileSystem> fileSystem(adoptRef(new DOMFileSystem(context, name, t ype, rootURL)));
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 194
195 } // namespace 195 } // namespace
196 196
197 void DOMFileSystem::createFile(const FileEntry* fileEntry, PassRefPtr<FileCallba ck> successCallback, PassRefPtr<ErrorCallback> errorCallback) 197 void DOMFileSystem::createFile(const FileEntry* fileEntry, PassRefPtr<FileCallba ck> successCallback, PassRefPtr<ErrorCallback> errorCallback)
198 { 198 {
199 KURL fileSystemURL = createFileSystemURL(fileEntry); 199 KURL fileSystemURL = createFileSystemURL(fileEntry);
200 fileSystem()->createSnapshotFileAndReadMetadata(fileSystemURL, SnapshotFileC allback::create(this, fileEntry->name(), fileSystemURL, successCallback, errorCa llback)); 200 fileSystem()->createSnapshotFileAndReadMetadata(fileSystemURL, SnapshotFileC allback::create(this, fileEntry->name(), fileSystemURL, successCallback, errorCa llback));
201 } 201 }
202 202
203 } // namespace WebCore 203 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698