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

Side by Side Diff: Source/web/LocalFileSystemClient.cpp

Issue 23537011: FileAPI: Add WebFileSystem::resolveURL (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix Created 7 years, 3 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 return !webView->permissionClient() || webView->permissionClient()->allowFil eSystem(webFrame); 66 return !webView->permissionClient() || webView->permissionClient()->allowFil eSystem(webFrame);
67 } 67 }
68 68
69 void LocalFileSystemClient::openFileSystem(ScriptExecutionContext* context, WebC ore::FileSystemType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, long l ong size, OpenFileSystemMode openMode) 69 void LocalFileSystemClient::openFileSystem(ScriptExecutionContext* context, WebC ore::FileSystemType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, long l ong size, OpenFileSystemMode openMode)
70 { 70 {
71 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString()); 71 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString());
72 WebKit::Platform::current()->fileSystem()->openFileSystem(storagePartition, static_cast<WebFileSystemType>(type), openMode == CreateFileSystemIfNotPresent, callbacks); 72 WebKit::Platform::current()->fileSystem()->openFileSystem(storagePartition, static_cast<WebFileSystemType>(type), openMode == CreateFileSystemIfNotPresent, callbacks);
73 } 73 }
74 74
75 void LocalFileSystemClient::resolveURL(KURL fileSystemURL, PassOwnPtr<AsyncFileS ystemCallbacks> callbacks)
76 {
77 WebKit::Platform::current()->fileSystem()->resolveURL(fileSystemURL, callbac ks);
78 }
79
75 void LocalFileSystemClient::deleteFileSystem(ScriptExecutionContext* context, We bCore::FileSystemType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) 80 void LocalFileSystemClient::deleteFileSystem(ScriptExecutionContext* context, We bCore::FileSystemType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks)
76 { 81 {
77 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString()); 82 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString());
78 WebKit::Platform::current()->fileSystem()->deleteFileSystem(storagePartition , static_cast<WebFileSystemType>(type), callbacks); 83 WebKit::Platform::current()->fileSystem()->deleteFileSystem(storagePartition , static_cast<WebFileSystemType>(type), callbacks);
79 84
80 } 85 }
81 86
82 LocalFileSystemClient::LocalFileSystemClient() 87 LocalFileSystemClient::LocalFileSystemClient()
83 { 88 {
84 } 89 }
85 90
86 } // namespace WebKit 91 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698