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

Side by Side Diff: WebKit/chromium/src/LocalFileSystemChromium.cpp

Issue 11192017: ********** WebCore blob hacking (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « WebKit/chromium/src/AsyncFileWriterChromium.cpp ('k') | WebKit/chromium/src/WebBlob.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2010, 2012 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 // Either the bridge returns, or the queue gets terminated. 147 // Either the bridge returns, or the queue gets terminated.
148 if (runLoop.runInMode(workerContext, mode) == MessageQueueTerminated) { 148 if (runLoop.runInMode(workerContext, mode) == MessageQueueTerminated) {
149 bridge->cancel(); 149 bridge->cancel();
150 return false; 150 return false;
151 } 151 }
152 152
153 return bridge->result(); 153 return bridge->result();
154 } 154 }
155 155
156 void openFileSystemForWorker(WebCommonWorkerClient* commonClient, WebFileSystem: :Type type, long long size, bool create, WebFileSystemCallbacks* callbacks, File SystemSynchronousType synchronousType) 156 void openFileSystemForWorker(WebCommonWorkerClient* commonClient, WebFileSystem: :Type type, long long size, bool create, WebFileSystemCallbacksImpl* callbacks, FileSystemSynchronousType synchronousType)
157 { 157 {
158 WorkerScriptController* controller = WorkerScriptController::controllerForCo ntext(); 158 WorkerScriptController* controller = WorkerScriptController::controllerForCo ntext();
159 WorkerContext* workerContext = controller->workerContext(); 159 WorkerContext* workerContext = controller->workerContext();
160 WebCore::WorkerThread* workerThread = workerContext->thread(); 160 WebCore::WorkerThread* workerThread = workerContext->thread();
161 WorkerRunLoop& runLoop = workerThread->runLoop(); 161 WorkerRunLoop& runLoop = workerThread->runLoop();
162 WebCore::WorkerLoaderProxy* workerLoaderProxy = &workerThread->workerLoader Proxy(); 162 WebCore::WorkerLoaderProxy* workerLoaderProxy = &workerThread->workerLoader Proxy();
163 163
164 // Create a unique mode for this openFileSystem call. 164 // Create a unique mode for this openFileSystem call.
165 String mode = openFileSystemMode; 165 String mode = openFileSystemMode;
166 mode.append(String::number(runLoop.createUniqueId())); 166 mode.append(String::number(runLoop.createUniqueId()));
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 context->postTask(createCallbackTask(&deleteFileSystemNotAllowed, callba cks)); 242 context->postTask(createCallbackTask(&deleteFileSystemNotAllowed, callba cks));
243 return; 243 return;
244 } 244 }
245 245
246 webFrame->client()->deleteFileSystem(webFrame, static_cast<WebFileSystem::Ty pe>(type), new WebFileSystemCallbacksImpl(callbacks)); 246 webFrame->client()->deleteFileSystem(webFrame, static_cast<WebFileSystem::Ty pe>(type), new WebFileSystemCallbacksImpl(callbacks));
247 } 247 }
248 248
249 } // namespace WebCore 249 } // namespace WebCore
250 250
251 #endif // ENABLE(FILE_SYSTEM) 251 #endif // ENABLE(FILE_SYSTEM)
OLDNEW
« no previous file with comments | « WebKit/chromium/src/AsyncFileWriterChromium.cpp ('k') | WebKit/chromium/src/WebBlob.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698