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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 return !webView->permissionClient() || webView->permissionClient()->allowFil
eSystem(webFrame); | 67 return !webView->permissionClient() || webView->permissionClient()->allowFil
eSystem(webFrame); |
68 } | 68 } |
69 | 69 |
70 void LocalFileSystemClient::openFileSystem(ScriptExecutionContext* context, WebC
ore::FileSystemType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, long l
ong size, OpenFileSystemMode openMode) | 70 void LocalFileSystemClient::openFileSystem(ScriptExecutionContext* context, WebC
ore::FileSystemType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, long l
ong size, OpenFileSystemMode openMode) |
71 { | 71 { |
72 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString()); | 72 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString()); |
73 // FIXME: fix this callbacks raw pointer. | 73 // FIXME: fix this callbacks raw pointer. |
74 WebKit::Platform::current()->fileSystem()->openFileSystem(storagePartition,
static_cast<WebFileSystemType>(type), openMode == CreateFileSystemIfNotPresent,
new WebKit::WebFileSystemCallbacksImpl(callbacks)); | 74 WebKit::Platform::current()->fileSystem()->openFileSystem(storagePartition,
static_cast<WebFileSystemType>(type), openMode == CreateFileSystemIfNotPresent,
new WebKit::WebFileSystemCallbacksImpl(callbacks)); |
75 } | 75 } |
76 | 76 |
| 77 void LocalFileSystemClient::resolveURL(KURL completedURL, PassOwnPtr<AsyncFileSy
stemCallbacks> callbacks) |
| 78 { |
| 79 WebKit::Platform::current()->fileSystem()->resolveURL(completedURL, new WebK
it::WebFileSystemCallbacksImpl(callbacks)); |
| 80 } |
| 81 |
77 void LocalFileSystemClient::deleteFileSystem(ScriptExecutionContext* context, We
bCore::FileSystemType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) | 82 void LocalFileSystemClient::deleteFileSystem(ScriptExecutionContext* context, We
bCore::FileSystemType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) |
78 { | 83 { |
79 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString()); | 84 KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString()); |
80 // FIXME: fix this callbacks raw pointer. | 85 // FIXME: fix this callbacks raw pointer. |
81 WebKit::Platform::current()->fileSystem()->deleteFileSystem(storagePartition
, static_cast<WebFileSystemType>(type), new WebFileSystemCallbacksImpl(callbacks
)); | 86 WebKit::Platform::current()->fileSystem()->deleteFileSystem(storagePartition
, static_cast<WebFileSystemType>(type), new WebFileSystemCallbacksImpl(callbacks
)); |
82 | 87 |
83 } | 88 } |
84 | 89 |
85 LocalFileSystemClient::LocalFileSystemClient() | 90 LocalFileSystemClient::LocalFileSystemClient() |
86 { | 91 { |
87 } | 92 } |
88 | 93 |
89 } // namespace WebKit | 94 } // namespace WebKit |
OLD | NEW |