| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 return bridge->result(); | 108 return bridge->result(); |
| 109 } | 109 } |
| 110 | 110 |
| 111 void WorkerFileSystemClient::openFileSystem(ScriptExecutionContext* context, Web
Core::FileSystemType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, long
long size, OpenFileSystemMode openMode) | 111 void WorkerFileSystemClient::openFileSystem(ScriptExecutionContext* context, Web
Core::FileSystemType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, long
long size, OpenFileSystemMode openMode) |
| 112 { | 112 { |
| 113 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString()); | 113 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString()); |
| 114 // FIXME: fix this callbacks raw pointer. | 114 // FIXME: fix this callbacks raw pointer. |
| 115 WebKit::Platform::current()->fileSystem()->openFileSystem(storagePartition,
static_cast<WebFileSystemType>(type), openMode == CreateFileSystemIfNotPresent,
new WebKit::WebFileSystemCallbacksImpl(callbacks)); | 115 WebKit::Platform::current()->fileSystem()->openFileSystem(storagePartition,
static_cast<WebFileSystemType>(type), openMode == CreateFileSystemIfNotPresent,
new WebKit::WebFileSystemCallbacksImpl(callbacks)); |
| 116 } | 116 } |
| 117 | 117 |
| 118 void WorkerFileSystemClient::resolveURL(KURL completedURL, PassOwnPtr<AsyncFileS
ystemCallbacks> callbacks) |
| 119 { |
| 120 WebKit::Platform::current()->fileSystem()->resolveURL(completedURL, new WebK
it::WebFileSystemCallbacksImpl(callbacks)); |
| 121 } |
| 122 |
| 118 void WorkerFileSystemClient::deleteFileSystem(WebCore::ScriptExecutionContext*,
WebCore::FileSystemType, PassOwnPtr<WebCore::AsyncFileSystemCallbacks>) | 123 void WorkerFileSystemClient::deleteFileSystem(WebCore::ScriptExecutionContext*,
WebCore::FileSystemType, PassOwnPtr<WebCore::AsyncFileSystemCallbacks>) |
| 119 { | 124 { |
| 120 ASSERT_NOT_REACHED(); | 125 ASSERT_NOT_REACHED(); |
| 121 } | 126 } |
| 122 | 127 |
| 123 WorkerFileSystemClient::WorkerFileSystemClient() | 128 WorkerFileSystemClient::WorkerFileSystemClient() |
| 124 { | 129 { |
| 125 } | 130 } |
| 126 | 131 |
| 127 } // namespace WebKit | 132 } // namespace WebKit |
| OLD | NEW |