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

Side by Side Diff: content/common/webblobregistry_impl.cc

Issue 6681028: Move the blob related code to content, and also move the blob messages to the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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/common/webblobregistry_impl.h ('k') | content/content_common.gypi » ('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) 2011 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/common/webblobregistry_impl.h" 5 #include "content/common/webblobregistry_impl.h"
6 6
7 #include "base/ref_counted.h" 7 #include "base/ref_counted.h"
8 #include "chrome/common/render_messages.h" 8 #include "content/common/webblob_messages.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBlobData.h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBlobData.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h"
12 #include "webkit/blob/blob_data.h" 12 #include "webkit/blob/blob_data.h"
13 13
14 using WebKit::WebBlobData; 14 using WebKit::WebBlobData;
15 using WebKit::WebString; 15 using WebKit::WebString;
16 using WebKit::WebURL; 16 using WebKit::WebURL;
17 17
18 WebBlobRegistryImpl::WebBlobRegistryImpl(IPC::Message::Sender* sender) 18 WebBlobRegistryImpl::WebBlobRegistryImpl(IPC::Message::Sender* sender)
19 : sender_(sender) { 19 : sender_(sender) {
20 } 20 }
21 21
22 WebBlobRegistryImpl::~WebBlobRegistryImpl() { 22 WebBlobRegistryImpl::~WebBlobRegistryImpl() {
23 } 23 }
24 24
25 void WebBlobRegistryImpl::registerBlobURL( 25 void WebBlobRegistryImpl::registerBlobURL(
26 const WebURL& url, WebBlobData& data) { 26 const WebURL& url, WebBlobData& data) {
27 scoped_refptr<webkit_blob::BlobData> blob_data( 27 scoped_refptr<webkit_blob::BlobData> blob_data(
28 new webkit_blob::BlobData(data)); 28 new webkit_blob::BlobData(data));
29 sender_->Send(new ViewHostMsg_RegisterBlobUrl(url, blob_data)); 29 sender_->Send(new BlobHostMsg_RegisterBlobUrl(url, blob_data));
30 } 30 }
31 31
32 void WebBlobRegistryImpl::registerBlobURL( 32 void WebBlobRegistryImpl::registerBlobURL(
33 const WebURL& url, const WebURL& src_url) { 33 const WebURL& url, const WebURL& src_url) {
34 sender_->Send(new ViewHostMsg_RegisterBlobUrlFrom(url, src_url)); 34 sender_->Send(new BlobHostMsg_RegisterBlobUrlFrom(url, src_url));
35 } 35 }
36 36
37 void WebBlobRegistryImpl::unregisterBlobURL(const WebURL& url) { 37 void WebBlobRegistryImpl::unregisterBlobURL(const WebURL& url) {
38 sender_->Send(new ViewHostMsg_UnregisterBlobUrl(url)); 38 sender_->Send(new BlobHostMsg_UnregisterBlobUrl(url));
39 } 39 }
OLDNEW
« no previous file with comments | « content/common/webblobregistry_impl.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698