| 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 "LocalFileSystemClient.h" | 32 #include "LocalFileSystemClient.h" |
| 33 | 33 |
| 34 #include "WebFrameImpl.h" | 34 #include "WebFrameImpl.h" |
| 35 #include "WebViewImpl.h" | 35 #include "WebViewImpl.h" |
| 36 #include "WorkerPermissionClient.h" | 36 #include "WorkerPermissionClient.h" |
| 37 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
| 38 #include "core/workers/WorkerGlobalScope.h" | 38 #include "core/workers/WorkerGlobalScope.h" |
| 39 #include "platform/weborigin/SecurityOrigin.h" |
| 39 #include "public/web/WebPermissionClient.h" | 40 #include "public/web/WebPermissionClient.h" |
| 40 #include "weborigin/SecurityOrigin.h" | |
| 41 #include "wtf/text/WTFString.h" | 41 #include "wtf/text/WTFString.h" |
| 42 | 42 |
| 43 using namespace WebCore; | 43 using namespace WebCore; |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 PassOwnPtr<FileSystemClient> LocalFileSystemClient::create() | 47 PassOwnPtr<FileSystemClient> LocalFileSystemClient::create() |
| 48 { | 48 { |
| 49 return adoptPtr(static_cast<FileSystemClient*>(new LocalFileSystemClient()))
; | 49 return adoptPtr(static_cast<FileSystemClient*>(new LocalFileSystemClient()))
; |
| 50 } | 50 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 63 } | 63 } |
| 64 ASSERT(context->isWorkerGlobalScope()); | 64 ASSERT(context->isWorkerGlobalScope()); |
| 65 return WorkerPermissionClient::from(toWorkerGlobalScope(context))->allowFile
System(); | 65 return WorkerPermissionClient::from(toWorkerGlobalScope(context))->allowFile
System(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 LocalFileSystemClient::LocalFileSystemClient() | 68 LocalFileSystemClient::LocalFileSystemClient() |
| 69 { | 69 { |
| 70 } | 70 } |
| 71 | 71 |
| 72 } // namespace blink | 72 } // namespace blink |
| OLD | NEW |