OLD | NEW |
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 return bridge->result(); | 107 return bridge->result(); |
108 } | 108 } |
109 | 109 |
110 void WorkerFileSystemClient::openFileSystem(ScriptExecutionContext* context, Web
Core::FileSystemType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, long
long size, OpenFileSystemMode openMode) | 110 void WorkerFileSystemClient::openFileSystem(ScriptExecutionContext* context, Web
Core::FileSystemType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, long
long size, OpenFileSystemMode openMode) |
111 { | 111 { |
112 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString()); | 112 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString()); |
113 WebKit::Platform::current()->fileSystem()->openFileSystem(storagePartition,
static_cast<WebFileSystemType>(type), openMode == CreateFileSystemIfNotPresent,
callbacks); | 113 WebKit::Platform::current()->fileSystem()->openFileSystem(storagePartition,
static_cast<WebFileSystemType>(type), openMode == CreateFileSystemIfNotPresent,
callbacks); |
114 } | 114 } |
115 | 115 |
| 116 void WorkerFileSystemClient::resolveURL(KURL fileSystemURL, PassOwnPtr<AsyncFile
SystemCallbacks> callbacks) |
| 117 { |
| 118 WebKit::Platform::current()->fileSystem()->resolveURL(fileSystemURL, callbac
ks); |
| 119 } |
| 120 |
116 void WorkerFileSystemClient::deleteFileSystem(WebCore::ScriptExecutionContext*,
WebCore::FileSystemType, PassOwnPtr<WebCore::AsyncFileSystemCallbacks>) | 121 void WorkerFileSystemClient::deleteFileSystem(WebCore::ScriptExecutionContext*,
WebCore::FileSystemType, PassOwnPtr<WebCore::AsyncFileSystemCallbacks>) |
117 { | 122 { |
118 ASSERT_NOT_REACHED(); | 123 ASSERT_NOT_REACHED(); |
119 } | 124 } |
120 | 125 |
121 WorkerFileSystemClient::WorkerFileSystemClient() | 126 WorkerFileSystemClient::WorkerFileSystemClient() |
122 { | 127 { |
123 } | 128 } |
124 | 129 |
125 } // namespace WebKit | 130 } // namespace WebKit |
OLD | NEW |