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/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "content/child/child_thread.h" | 11 #include "content/child/child_thread.h" |
12 #include "content/child/thread_safe_sender.h" | 12 #include "content/child/thread_safe_sender.h" |
13 #include "content/common/fileapi/webblob_messages.h" | 13 #include "content/common/fileapi/webblob_messages.h" |
14 #include "third_party/WebKit/public/platform/WebBlobData.h" | 14 #include "third_party/WebKit/public/platform/WebBlobData.h" |
15 #include "third_party/WebKit/public/platform/WebString.h" | 15 #include "third_party/WebKit/public/platform/WebString.h" |
16 #include "third_party/WebKit/public/platform/WebThreadSafeData.h" | 16 #include "third_party/WebKit/public/platform/WebThreadSafeData.h" |
17 #include "third_party/WebKit/public/platform/WebURL.h" | 17 #include "third_party/WebKit/public/platform/WebURL.h" |
18 #include "webkit/common/blob/blob_data.h" | 18 #include "webkit/common/blob/blob_data.h" |
19 | 19 |
20 using WebKit::WebBlobData; | 20 using WebKit::WebBlobData; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 sender_->Send(new BlobHostMsg_CloneBlob(url, src_url)); | 126 sender_->Send(new BlobHostMsg_CloneBlob(url, src_url)); |
127 } | 127 } |
128 | 128 |
129 void WebBlobRegistryImpl::unregisterBlobURL(const WebURL& url) { | 129 void WebBlobRegistryImpl::unregisterBlobURL(const WebURL& url) { |
130 DCHECK(ChildThread::current()->message_loop() == | 130 DCHECK(ChildThread::current()->message_loop() == |
131 base::MessageLoop::current()); | 131 base::MessageLoop::current()); |
132 sender_->Send(new BlobHostMsg_RemoveBlob(url)); | 132 sender_->Send(new BlobHostMsg_RemoveBlob(url)); |
133 } | 133 } |
134 | 134 |
135 } // namespace content | 135 } // namespace content |
OLD | NEW |