| 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/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 data_ptr += chunk_size; | 182 data_ptr += chunk_size; |
| 183 } | 183 } |
| 184 } | 184 } |
| 185 } | 185 } |
| 186 | 186 |
| 187 void WebBlobRegistryImpl::finalizeStream(const WebURL& url) { | 187 void WebBlobRegistryImpl::finalizeStream(const WebURL& url) { |
| 188 DCHECK(ChildThread::current()); | 188 DCHECK(ChildThread::current()); |
| 189 sender_->Send(new StreamHostMsg_FinishBuilding(url)); | 189 sender_->Send(new StreamHostMsg_FinishBuilding(url)); |
| 190 } | 190 } |
| 191 | 191 |
| 192 void WebBlobRegistryImpl::abortStream(const WebURL& url) { |
| 193 DCHECK(ChildThread::current()); |
| 194 sender_->Send(new StreamHostMsg_AbortBuilding(url)); |
| 195 } |
| 196 |
| 192 void WebBlobRegistryImpl::unregisterStreamURL(const WebURL& url) { | 197 void WebBlobRegistryImpl::unregisterStreamURL(const WebURL& url) { |
| 193 DCHECK(ChildThread::current()); | 198 DCHECK(ChildThread::current()); |
| 194 sender_->Send(new StreamHostMsg_Remove(url)); | 199 sender_->Send(new StreamHostMsg_Remove(url)); |
| 195 } | 200 } |
| 196 | 201 |
| 197 } // namespace content | 202 } // namespace content |
| OLD | NEW |