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 "web/LocalFileSystemClient.h" | 31 #include "web/LocalFileSystemClient.h" |
32 | 32 |
33 #include <memory> | 33 #include <memory> |
34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
35 #include "core/frame/ContentSettingsClient.h" | 35 #include "core/frame/ContentSettingsClient.h" |
36 #include "core/workers/WorkerGlobalScope.h" | 36 #include "core/workers/WorkerGlobalScope.h" |
37 #include "platform/ContentSettingCallbacks.h" | 37 #include "platform/ContentSettingCallbacks.h" |
38 #include "platform/weborigin/SecurityOrigin.h" | 38 #include "platform/weborigin/SecurityOrigin.h" |
| 39 #include "platform/wtf/PtrUtil.h" |
| 40 #include "platform/wtf/text/WTFString.h" |
39 #include "web/WebLocalFrameImpl.h" | 41 #include "web/WebLocalFrameImpl.h" |
40 #include "web/WorkerContentSettingsClient.h" | 42 #include "web/WorkerContentSettingsClient.h" |
41 #include "wtf/PtrUtil.h" | |
42 #include "wtf/text/WTFString.h" | |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 | 45 |
46 std::unique_ptr<FileSystemClient> LocalFileSystemClient::create() { | 46 std::unique_ptr<FileSystemClient> LocalFileSystemClient::create() { |
47 return WTF::wrapUnique( | 47 return WTF::wrapUnique( |
48 static_cast<FileSystemClient*>(new LocalFileSystemClient())); | 48 static_cast<FileSystemClient*>(new LocalFileSystemClient())); |
49 } | 49 } |
50 | 50 |
51 LocalFileSystemClient::~LocalFileSystemClient() {} | 51 LocalFileSystemClient::~LocalFileSystemClient() {} |
52 | 52 |
(...skipping 21 matching lines...) Expand all Loading... |
74 | 74 |
75 Document* document = toDocument(context); | 75 Document* document = toDocument(context); |
76 DCHECK(document->frame()); | 76 DCHECK(document->frame()); |
77 document->frame()->contentSettingsClient()->requestFileSystemAccessAsync( | 77 document->frame()->contentSettingsClient()->requestFileSystemAccessAsync( |
78 std::move(callbacks)); | 78 std::move(callbacks)); |
79 } | 79 } |
80 | 80 |
81 LocalFileSystemClient::LocalFileSystemClient() {} | 81 LocalFileSystemClient::LocalFileSystemClient() {} |
82 | 82 |
83 } // namespace blink | 83 } // namespace blink |
OLD | NEW |