Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp

Issue 2110363002: Rename SameThreadClosure to Closure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_ExplicitWTFBind
Patch Set: Add WTF:: to Closure Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 WebFileSystem* LocalFileSystem::getFileSystem() const 112 WebFileSystem* LocalFileSystem::getFileSystem() const
113 { 113 {
114 Platform* platform = Platform::current(); 114 Platform* platform = Platform::current();
115 if (!platform) 115 if (!platform)
116 return nullptr; 116 return nullptr;
117 117
118 return platform->fileSystem(); 118 return platform->fileSystem();
119 } 119 }
120 120
121 void LocalFileSystem::requestFileSystemAccessInternal(ExecutionContext* context, std::unique_ptr<SameThreadClosure> allowed, std::unique_ptr<SameThreadClosure> denied) 121 void LocalFileSystem::requestFileSystemAccessInternal(ExecutionContext* context, std::unique_ptr<WTF::Closure> allowed, std::unique_ptr<WTF::Closure> denied)
122 { 122 {
123 if (!client()) { 123 if (!client()) {
124 (*denied)(); 124 (*denied)();
125 return; 125 return;
126 } 126 }
127 if (!context->isDocument()) { 127 if (!context->isDocument()) {
128 if (!client()->requestFileSystemAccessSync(context)) { 128 if (!client()->requestFileSystemAccessSync(context)) {
129 (*denied)(); 129 (*denied)();
130 return; 130 return;
131 } 131 }
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 { 214 {
215 frame.provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem:: create(std::move(client))); 215 frame.provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem:: create(std::move(client)));
216 } 216 }
217 217
218 void provideLocalFileSystemToWorker(WorkerClients* clients, std::unique_ptr<File SystemClient> client) 218 void provideLocalFileSystemToWorker(WorkerClients* clients, std::unique_ptr<File SystemClient> client)
219 { 219 {
220 clients->provideSupplement(LocalFileSystem::supplementName(), LocalFileSyste m::create(std::move(client))); 220 clients->provideSupplement(LocalFileSystem::supplementName(), LocalFileSyste m::create(std::move(client)));
221 } 221 }
222 222
223 } // namespace blink 223 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698