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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "modules/filesystem/LocalFileSystem.h" | 32 #include "modules/filesystem/LocalFileSystem.h" |
33 | 33 |
34 #include "core/dom/CrossThreadTask.h" | 34 #include "core/dom/CrossThreadTask.h" |
35 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
36 #include "core/dom/ExceptionCode.h" | 36 #include "core/dom/ExceptionCode.h" |
37 #include "core/dom/ExecutionContext.h" | 37 #include "core/dom/ExecutionContext.h" |
38 #include "core/fileapi/FileError.h" | 38 #include "core/fileapi/FileError.h" |
39 #include "core/page/Page.h" | |
40 #include "core/workers/WorkerGlobalScope.h" | 39 #include "core/workers/WorkerGlobalScope.h" |
41 #include "modules/filesystem/FileSystemClient.h" | 40 #include "modules/filesystem/FileSystemClient.h" |
42 #include "platform/AsyncFileSystemCallbacks.h" | 41 #include "platform/AsyncFileSystemCallbacks.h" |
43 #include "public/platform/Platform.h" | 42 #include "public/platform/Platform.h" |
44 #include "public/platform/WebFileSystem.h" | 43 #include "public/platform/WebFileSystem.h" |
45 | 44 |
46 namespace WebCore { | 45 namespace WebCore { |
47 | 46 |
48 namespace { | 47 namespace { |
49 | 48 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 { | 117 { |
119 page->provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem::
create(client)); | 118 page->provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem::
create(client)); |
120 } | 119 } |
121 | 120 |
122 void provideLocalFileSystemToWorker(WorkerClients* clients, PassOwnPtr<FileSyste
mClient> client) | 121 void provideLocalFileSystemToWorker(WorkerClients* clients, PassOwnPtr<FileSyste
mClient> client) |
123 { | 122 { |
124 clients->provideSupplement(LocalFileSystem::supplementName(), LocalFileSyste
m::create(client)); | 123 clients->provideSupplement(LocalFileSystem::supplementName(), LocalFileSyste
m::create(client)); |
125 } | 124 } |
126 | 125 |
127 } // namespace WebCore | 126 } // namespace WebCore |
OLD | NEW |