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

Side by Side Diff: chrome/worker/worker_webkitclient_impl.cc

Issue 3108042: Support sending BlobData to browser process. Also support sending UploadData... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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 | « chrome/worker/worker_webkitclient_impl.h ('k') | net/base/upload_data.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/worker/worker_webkitclient_impl.h" 5 #include "chrome/worker/worker_webkitclient_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/common/database_util.h" 8 #include "chrome/common/database_util.h"
9 #include "chrome/common/render_messages.h" 9 #include "chrome/common/render_messages.h"
10 #include "chrome/common/render_messages_params.h" 10 #include "chrome/common/render_messages_params.h"
11 #include "chrome/common/webblobregistry_impl.h"
11 #include "chrome/common/webmessageportchannel_impl.h" 12 #include "chrome/common/webmessageportchannel_impl.h"
12 #include "chrome/worker/worker_thread.h" 13 #include "chrome/worker/worker_thread.h"
14 #include "third_party/WebKit/WebKit/chromium/public/WebBlobRegistry.h"
13 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" 15 #include "third_party/WebKit/WebKit/chromium/public/WebString.h"
14 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" 16 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h"
15 17
18 using WebKit::WebBlobRegistry;
16 using WebKit::WebClipboard; 19 using WebKit::WebClipboard;
17 using WebKit::WebKitClient; 20 using WebKit::WebKitClient;
18 using WebKit::WebMessagePortChannel; 21 using WebKit::WebMessagePortChannel;
19 using WebKit::WebMimeRegistry; 22 using WebKit::WebMimeRegistry;
20 using WebKit::WebSandboxSupport; 23 using WebKit::WebSandboxSupport;
21 using WebKit::WebSharedWorkerRepository; 24 using WebKit::WebSharedWorkerRepository;
22 using WebKit::WebStorageNamespace; 25 using WebKit::WebStorageNamespace;
23 using WebKit::WebString; 26 using WebKit::WebString;
24 using WebKit::WebURL; 27 using WebKit::WebURL;
25 28
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 WebString WorkerWebKitClientImpl::mimeTypeFromFile(const WebString&) { 168 WebString WorkerWebKitClientImpl::mimeTypeFromFile(const WebString&) {
166 NOTREACHED(); 169 NOTREACHED();
167 return WebString(); 170 return WebString();
168 } 171 }
169 172
170 WebString WorkerWebKitClientImpl::preferredExtensionForMIMEType( 173 WebString WorkerWebKitClientImpl::preferredExtensionForMIMEType(
171 const WebString&) { 174 const WebString&) {
172 NOTREACHED(); 175 NOTREACHED();
173 return WebString(); 176 return WebString();
174 } 177 }
178
179 WebBlobRegistry* WorkerWebKitClientImpl::blobRegistry() {
180 if (!blob_registry_.get())
181 blob_registry_.reset(new WebBlobRegistryImpl(WorkerThread::current()));
182 return blob_registry_.get();
183 }
OLDNEW
« no previous file with comments | « chrome/worker/worker_webkitclient_impl.h ('k') | net/base/upload_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698