OLD | NEW |
1 // Copyright (c) 2011 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 "content/common/webblobregistry_impl.h" | 5 #include "content/common/webblobregistry_impl.h" |
6 | 6 |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "content/common/child_thread.h" | 9 #include "content/common/child_thread.h" |
10 #include "content/common/webblob_messages.h" | 10 #include "content/common/webblob_messages.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBlobData.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebBlobData.
h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
14 #include "webkit/blob/blob_data.h" | 14 #include "webkit/blob/blob_data.h" |
15 #include "webkit/glue/webkit_glue.h" | 15 #include "webkit/glue/webkit_glue.h" |
16 | 16 |
17 using WebKit::WebBlobData; | 17 using WebKit::WebBlobData; |
18 using WebKit::WebString; | 18 using WebKit::WebString; |
19 using WebKit::WebURL; | 19 using WebKit::WebURL; |
20 | 20 |
21 WebBlobRegistryImpl::WebBlobRegistryImpl(ChildThread* child_thread) | 21 WebBlobRegistryImpl::WebBlobRegistryImpl(ChildThread* child_thread) |
22 : child_thread_(child_thread) { | 22 : child_thread_(child_thread) { |
23 } | 23 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 } | 89 } |
90 | 90 |
91 void WebBlobRegistryImpl::registerBlobURL( | 91 void WebBlobRegistryImpl::registerBlobURL( |
92 const WebURL& url, const WebURL& src_url) { | 92 const WebURL& url, const WebURL& src_url) { |
93 child_thread_->Send(new BlobHostMsg_CloneBlob(url, src_url)); | 93 child_thread_->Send(new BlobHostMsg_CloneBlob(url, src_url)); |
94 } | 94 } |
95 | 95 |
96 void WebBlobRegistryImpl::unregisterBlobURL(const WebURL& url) { | 96 void WebBlobRegistryImpl::unregisterBlobURL(const WebURL& url) { |
97 child_thread_->Send(new BlobHostMsg_RemoveBlob(url)); | 97 child_thread_->Send(new BlobHostMsg_RemoveBlob(url)); |
98 } | 98 } |
OLD | NEW |