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

Side by Side Diff: content/worker/websharedworkerclient_proxy.cc

Issue 12886018: Add support for WEBKIT_USE_NEW_WEBFILESYSTEMTYPE (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « content/worker/websharedworkerclient_proxy.h ('k') | webkit/fileapi/file_system_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/worker/websharedworkerclient_proxy.h" 5 #include "content/worker/websharedworkerclient_proxy.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "content/common/fileapi/file_system_dispatcher.h" 10 #include "content/common/fileapi/file_system_dispatcher.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 154 }
155 155
156 bool WebSharedWorkerClientProxy::allowFileSystem() { 156 bool WebSharedWorkerClientProxy::allowFileSystem() {
157 bool result = false; 157 bool result = false;
158 Send(new WorkerProcessHostMsg_AllowFileSystem( 158 Send(new WorkerProcessHostMsg_AllowFileSystem(
159 route_id_, stub_->url().GetOrigin(), &result)); 159 route_id_, stub_->url().GetOrigin(), &result));
160 return result; 160 return result;
161 } 161 }
162 162
163 void WebSharedWorkerClientProxy::openFileSystem( 163 void WebSharedWorkerClientProxy::openFileSystem(
164 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE
165 WebKit::WebFileSystemType type,
166 #else
164 WebKit::WebFileSystem::Type type, 167 WebKit::WebFileSystem::Type type,
168 #endif
165 long long size, 169 long long size,
166 bool create, 170 bool create,
167 WebKit::WebFileSystemCallbacks* callbacks) { 171 WebKit::WebFileSystemCallbacks* callbacks) {
168 ChildThread::current()->file_system_dispatcher()->OpenFileSystem( 172 ChildThread::current()->file_system_dispatcher()->OpenFileSystem(
169 stub_->url().GetOrigin(), static_cast<fileapi::FileSystemType>(type), 173 stub_->url().GetOrigin(), static_cast<fileapi::FileSystemType>(type),
170 size, create, new WebFileSystemCallbackDispatcher(callbacks)); 174 size, create, new WebFileSystemCallbackDispatcher(callbacks));
171 } 175 }
172 176
173 bool WebSharedWorkerClientProxy::allowIndexedDB(const WebKit::WebString& name) { 177 bool WebSharedWorkerClientProxy::allowIndexedDB(const WebKit::WebString& name) {
174 bool result = false; 178 bool result = false;
(...skipping 24 matching lines...) Expand all
199 // page. It's ok to post several of theese, because the first executed task 203 // page. It's ok to post several of theese, because the first executed task
200 // will exit the message loop and subsequent ones won't be executed. 204 // will exit the message loop and subsequent ones won't be executed.
201 MessageLoop::current()->PostDelayedTask(FROM_HERE, 205 MessageLoop::current()->PostDelayedTask(FROM_HERE,
202 base::Bind( 206 base::Bind(
203 &WebSharedWorkerClientProxy::workerContextDestroyed, 207 &WebSharedWorkerClientProxy::workerContextDestroyed,
204 weak_factory_.GetWeakPtr()), 208 weak_factory_.GetWeakPtr()),
205 base::TimeDelta::FromSeconds(kMaxTimeForRunawayWorkerSeconds)); 209 base::TimeDelta::FromSeconds(kMaxTimeForRunawayWorkerSeconds));
206 } 210 }
207 211
208 } // namespace content 212 } // namespace content
OLDNEW
« no previous file with comments | « content/worker/websharedworkerclient_proxy.h ('k') | webkit/fileapi/file_system_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698