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

Side by Side Diff: content/public/browser/stream_handle.h

Issue 281513003: Implement chrome.streamsPrivate.abort() extensions function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_
6 #define CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_ 6 #define CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 13 matching lines...) Expand all
24 virtual const GURL& GetURL() = 0; 24 virtual const GURL& GetURL() = 0;
25 25
26 // Gets the original URL being redirected to this Stream. 26 // Gets the original URL being redirected to this Stream.
27 virtual const GURL& GetOriginalURL() = 0; 27 virtual const GURL& GetOriginalURL() = 0;
28 28
29 // Get the MIME type associated with this Stream. 29 // Get the MIME type associated with this Stream.
30 virtual const std::string& GetMimeType() = 0; 30 virtual const std::string& GetMimeType() = 0;
31 31
32 // Get the HTTP response headers associated with this Stream. 32 // Get the HTTP response headers associated with this Stream.
33 virtual scoped_refptr<net::HttpResponseHeaders> GetResponseHeaders() = 0; 33 virtual scoped_refptr<net::HttpResponseHeaders> GetResponseHeaders() = 0;
34
35 // Add a callback which will be called when the Stream is closed.
36 virtual void AddCloseListener(const base::Closure& callback) = 0;
34 }; 37 };
35 38
36 } // namespace content 39 } // namespace content
37 40
38 #endif // CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_ 41 #endif // CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698