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

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

Issue 185663002: Pass http response headers to the streamsPrivate API callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class CONTENT_EXPORT StreamHandle { 14 class CONTENT_EXPORT StreamHandle {
15 public: 15 public:
16 virtual ~StreamHandle() {} 16 virtual ~StreamHandle() {}
17 17
18 // Gets the URL the stream can be read from. 18 // Gets the URL the stream can be read from.
19 virtual const GURL& GetURL() = 0; 19 virtual const GURL& GetURL() = 0;
20 20
21 // Gets the original URL being redirected to this Stream. 21 // Gets the original URL being redirected to this Stream.
22 virtual const GURL& GetOriginalURL() = 0; 22 virtual const GURL& GetOriginalURL() = 0;
23 23
24 // Get the MIME type associated with this Stream. 24 // Get the MIME type associated with this Stream.
25 virtual const std::string& GetMimeType() = 0; 25 virtual const std::string& GetMimeType() = 0;
26
27 // Get the HTTP response headers associated with this Stream.
28 virtual const std::string& GetResponseHeaders() = 0;
26 }; 29 };
27 30
28 } // namespace content 31 } // namespace content
29 32
30 #endif // CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_ 33 #endif // CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698