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

Unified Diff: content/browser/streams/stream_handle_impl.h

Issue 281513003: Implement chrome.streamsPrivate.abort() extensions function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/streams/stream_handle_impl.h
diff --git a/content/browser/streams/stream_handle_impl.h b/content/browser/streams/stream_handle_impl.h
index fc8f5355a34175bbd744fc03bd7e684c92b56578..dc64dade6daa0bfb98e5b65d090181b3440cab72 100644
--- a/content/browser/streams/stream_handle_impl.h
+++ b/content/browser/streams/stream_handle_impl.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_BROWSER_STREAMS_STREAM_HANDLE_IMPL_H_
#define CONTENT_BROWSER_STREAMS_STREAM_HANDLE_IMPL_H_
+#include <vector>
+
#include "base/memory/weak_ptr.h"
#include "base/synchronization/lock.h"
#include "content/public/browser/stream_handle.h"
@@ -31,6 +33,7 @@ class StreamHandleImpl : public StreamHandle {
virtual const GURL& GetOriginalURL() OVERRIDE;
virtual const std::string& GetMimeType() OVERRIDE;
virtual scoped_refptr<net::HttpResponseHeaders> GetResponseHeaders() OVERRIDE;
+ virtual void AddCloseListener(const base::Closure& callback) OVERRIDE;
base::WeakPtr<Stream> stream_;
GURL url_;
@@ -38,6 +41,7 @@ class StreamHandleImpl : public StreamHandle {
std::string mime_type_;
scoped_refptr<net::HttpResponseHeaders> response_headers_;
base::MessageLoopProxy* stream_message_loop_;
+ std::vector<base::Closure> close_listeners_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698