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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 (*allowed)(); | 136 (*allowed)(); |
137 return; | 137 return; |
138 } | 138 } |
139 client()->requestFileSystemAccessAsync(context, ContentSettingCallbacks::cre
ate(allowed, denied)); | 139 client()->requestFileSystemAccessAsync(context, ContentSettingCallbacks::cre
ate(allowed, denied)); |
140 } | 140 } |
141 | 141 |
142 void LocalFileSystem::fileSystemNotAvailable( | 142 void LocalFileSystem::fileSystemNotAvailable( |
143 PassRefPtrWillBeRawPtr<ExecutionContext> context, | 143 PassRefPtrWillBeRawPtr<ExecutionContext> context, |
144 CallbackWrapper* callbacks) | 144 CallbackWrapper* callbacks) |
145 { | 145 { |
146 context->postTask(FROM_HERE, createSameThreadTask(&reportFailure, callbacks-
>release(), FileError::ABORT_ERR)); | 146 context->postTask(BLINK_FROM_HERE, createSameThreadTask(&reportFailure, call
backs->release(), FileError::ABORT_ERR)); |
147 } | 147 } |
148 | 148 |
149 void LocalFileSystem::fileSystemNotAllowedInternal( | 149 void LocalFileSystem::fileSystemNotAllowedInternal( |
150 PassRefPtrWillBeRawPtr<ExecutionContext> context, | 150 PassRefPtrWillBeRawPtr<ExecutionContext> context, |
151 CallbackWrapper* callbacks) | 151 CallbackWrapper* callbacks) |
152 { | 152 { |
153 context->postTask(FROM_HERE, createSameThreadTask(&reportFailure, callbacks-
>release(), FileError::ABORT_ERR)); | 153 context->postTask(BLINK_FROM_HERE, createSameThreadTask(&reportFailure, call
backs->release(), FileError::ABORT_ERR)); |
154 } | 154 } |
155 | 155 |
156 void LocalFileSystem::fileSystemAllowedInternal( | 156 void LocalFileSystem::fileSystemAllowedInternal( |
157 PassRefPtrWillBeRawPtr<ExecutionContext> context, | 157 PassRefPtrWillBeRawPtr<ExecutionContext> context, |
158 FileSystemType type, | 158 FileSystemType type, |
159 CallbackWrapper* callbacks) | 159 CallbackWrapper* callbacks) |
160 { | 160 { |
161 if (!fileSystem()) { | 161 if (!fileSystem()) { |
162 fileSystemNotAvailable(context, callbacks); | 162 fileSystemNotAvailable(context, callbacks); |
163 return; | 163 return; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 { | 216 { |
217 frame.provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem::
create(client)); | 217 frame.provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem::
create(client)); |
218 } | 218 } |
219 | 219 |
220 void provideLocalFileSystemToWorker(WorkerClients* clients, PassOwnPtr<FileSyste
mClient> client) | 220 void provideLocalFileSystemToWorker(WorkerClients* clients, PassOwnPtr<FileSyste
mClient> client) |
221 { | 221 { |
222 clients->provideSupplement(LocalFileSystem::supplementName(), LocalFileSyste
m::create(client)); | 222 clients->provideSupplement(LocalFileSystem::supplementName(), LocalFileSyste
m::create(client)); |
223 } | 223 } |
224 | 224 |
225 } // namespace blink | 225 } // namespace blink |
OLD | NEW |