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

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

Issue 23543002: Add an IPC to abort Stream construction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698