OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/child/webblobregistry_impl.h" | 5 #include "content/child/webblobregistry_impl.h" |
6 | 6 |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "content/child/child_thread.h" | 10 #include "content/child/child_thread.h" |
11 #include "content/child/thread_safe_sender.h" | 11 #include "content/child/thread_safe_sender.h" |
12 #include "content/common/fileapi/webblob_messages.h" | 12 #include "content/common/fileapi/webblob_messages.h" |
13 #include "third_party/WebKit/public/platform/WebBlobData.h" | 13 #include "third_party/WebKit/public/platform/WebBlobData.h" |
14 #include "third_party/WebKit/public/platform/WebString.h" | 14 #include "third_party/WebKit/public/platform/WebString.h" |
15 #include "third_party/WebKit/public/platform/WebURL.h" | 15 #include "third_party/WebKit/public/platform/WebURL.h" |
16 #include "webkit/base/file_path_string_conversions.h" | 16 #include "webkit/common/base/file_path_string_conversions.h" |
17 #include "webkit/common/blob/blob_data.h" | 17 #include "webkit/common/blob/blob_data.h" |
18 | 18 |
19 using WebKit::WebBlobData; | 19 using WebKit::WebBlobData; |
20 using WebKit::WebString; | 20 using WebKit::WebString; |
21 using WebKit::WebURL; | 21 using WebKit::WebURL; |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 | 24 |
25 WebBlobRegistryImpl::WebBlobRegistryImpl(ThreadSafeSender* sender) | 25 WebBlobRegistryImpl::WebBlobRegistryImpl(ThreadSafeSender* sender) |
26 : sender_(sender) { | 26 : sender_(sender) { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 sender_->Send(new BlobHostMsg_CloneBlob(url, src_url)); | 118 sender_->Send(new BlobHostMsg_CloneBlob(url, src_url)); |
119 } | 119 } |
120 | 120 |
121 void WebBlobRegistryImpl::unregisterBlobURL(const WebURL& url) { | 121 void WebBlobRegistryImpl::unregisterBlobURL(const WebURL& url) { |
122 DCHECK(ChildThread::current()->message_loop() == | 122 DCHECK(ChildThread::current()->message_loop() == |
123 base::MessageLoop::current()); | 123 base::MessageLoop::current()); |
124 sender_->Send(new BlobHostMsg_RemoveBlob(url)); | 124 sender_->Send(new BlobHostMsg_RemoveBlob(url)); |
125 } | 125 } |
126 | 126 |
127 } // namespace content | 127 } // namespace content |
OLD | NEW |