| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 (*allowed)(); | 132 (*allowed)(); |
| 133 return; | 133 return; |
| 134 } | 134 } |
| 135 client()->requestFileSystemAccessAsync(context, ContentSettingCallbacks::cre
ate(std::move(allowed), std::move(denied))); | 135 client()->requestFileSystemAccessAsync(context, ContentSettingCallbacks::cre
ate(std::move(allowed), std::move(denied))); |
| 136 } | 136 } |
| 137 | 137 |
| 138 void LocalFileSystem::fileSystemNotAvailable( | 138 void LocalFileSystem::fileSystemNotAvailable( |
| 139 ExecutionContext* context, | 139 ExecutionContext* context, |
| 140 CallbackWrapper* callbacks) | 140 CallbackWrapper* callbacks) |
| 141 { | 141 { |
| 142 context->postTask(BLINK_FROM_HERE, createSameThreadTask(&reportFailure, pass
ed(callbacks->release()), FileError::ABORT_ERR)); | 142 context->postTask(BLINK_FROM_HERE, createSameThreadTask(&reportFailure, pass
ed(callbacks->release()), FileError::kAbortErr)); |
| 143 } | 143 } |
| 144 | 144 |
| 145 void LocalFileSystem::fileSystemNotAllowedInternal( | 145 void LocalFileSystem::fileSystemNotAllowedInternal( |
| 146 ExecutionContext* context, | 146 ExecutionContext* context, |
| 147 CallbackWrapper* callbacks) | 147 CallbackWrapper* callbacks) |
| 148 { | 148 { |
| 149 context->postTask(BLINK_FROM_HERE, createSameThreadTask(&reportFailure, pass
ed(callbacks->release()), FileError::ABORT_ERR)); | 149 context->postTask(BLINK_FROM_HERE, createSameThreadTask(&reportFailure, pass
ed(callbacks->release()), FileError::kAbortErr)); |
| 150 } | 150 } |
| 151 | 151 |
| 152 void LocalFileSystem::fileSystemAllowedInternal( | 152 void LocalFileSystem::fileSystemAllowedInternal( |
| 153 ExecutionContext* context, | 153 ExecutionContext* context, |
| 154 FileSystemType type, | 154 FileSystemType type, |
| 155 CallbackWrapper* callbacks) | 155 CallbackWrapper* callbacks) |
| 156 { | 156 { |
| 157 WebFileSystem* fileSystem = getFileSystem(); | 157 WebFileSystem* fileSystem = getFileSystem(); |
| 158 if (!fileSystem) { | 158 if (!fileSystem) { |
| 159 fileSystemNotAvailable(context, callbacks); | 159 fileSystemNotAvailable(context, callbacks); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 { | 220 { |
| 221 frame.provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem::
create(std::move(client))); | 221 frame.provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem::
create(std::move(client))); |
| 222 } | 222 } |
| 223 | 223 |
| 224 void provideLocalFileSystemToWorker(WorkerClients* clients, std::unique_ptr<File
SystemClient> client) | 224 void provideLocalFileSystemToWorker(WorkerClients* clients, std::unique_ptr<File
SystemClient> client) |
| 225 { | 225 { |
| 226 clients->provideSupplement(LocalFileSystem::supplementName(), LocalFileSyste
m::create(std::move(client))); | 226 clients->provideSupplement(LocalFileSystem::supplementName(), LocalFileSyste
m::create(std::move(client))); |
| 227 } | 227 } |
| 228 | 228 |
| 229 } // namespace blink | 229 } // namespace blink |
| OLD | NEW |