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

Unified Diff: content/public/browser/stream_handle.h

Issue 519533002: Initial PlzNavigate RDH-side logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/stream_handle.h
diff --git a/content/public/browser/stream_handle.h b/content/public/browser/stream_handle.h
index 94591d7d41d320819277f298939030bd80844c1d..7a8fb3225cd86f53480a55880ee93594c2179aad 100644
--- a/content/public/browser/stream_handle.h
+++ b/content/public/browser/stream_handle.h
@@ -5,17 +5,14 @@
#ifndef CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_
#define CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_
-#include "base/callback.h"
-#include "base/memory/ref_counted.h"
+#include "base/callback_forward.h"
#include "content/common/content_export.h"
#include "url/gurl.h"
-namespace net {
-class HttpResponseHeaders;
-}
-
namespace content {
+// A handle to a Stream. When the handle is destroyed, the stream is released
+// and the URL is invalidated.
class CONTENT_EXPORT StreamHandle {
public:
virtual ~StreamHandle() {}
@@ -23,15 +20,6 @@ class CONTENT_EXPORT StreamHandle {
// Gets the URL the stream can be read from.
virtual const GURL& GetURL() = 0;
- // Gets the original URL being redirected to this Stream.
- virtual const GURL& GetOriginalURL() = 0;
-
- // Get the MIME type associated with this Stream.
- virtual const std::string& GetMimeType() = 0;
-
- // Get the HTTP response headers associated with this Stream.
- virtual scoped_refptr<net::HttpResponseHeaders> GetResponseHeaders() = 0;
-
// Add a callback which will be called when the Stream is closed.
virtual void AddCloseListener(const base::Closure& callback) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698