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

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

Issue 519533002: Initial PlzNavigate RDH-side logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 6 years, 2 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
« no previous file with comments | « content/browser/streams/stream_handle_impl.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/streams/stream_handle_impl.cc
diff --git a/content/browser/streams/stream_handle_impl.cc b/content/browser/streams/stream_handle_impl.cc
index 949e2fbf78ad56f6cf292caaf9486f40140e50dd..5bc2acbf4fa8f95cebc6fb765084a460f1098382 100644
--- a/content/browser/streams/stream_handle_impl.cc
+++ b/content/browser/streams/stream_handle_impl.cc
@@ -8,7 +8,6 @@
#include "base/location.h"
#include "base/message_loop/message_loop_proxy.h"
#include "content/browser/streams/stream.h"
-#include "net/http/http_response_headers.h"
namespace content {
@@ -21,24 +20,10 @@ void RunCloseListeners(const std::vector<base::Closure>& close_listeners) {
} // namespace
-StreamHandleImpl::StreamHandleImpl(
- const base::WeakPtr<Stream>& stream,
- const GURL& original_url,
- const std::string& mime_type,
- scoped_refptr<net::HttpResponseHeaders> response_headers)
+StreamHandleImpl::StreamHandleImpl(const base::WeakPtr<Stream>& stream)
: stream_(stream),
url_(stream->url()),
- original_url_(original_url),
- mime_type_(mime_type),
- response_headers_(NULL),
- stream_message_loop_(base::MessageLoopProxy::current().get()) {
- // Make a copy of the response headers so it is safe to pass this across
- // threads.
- if (response_headers.get()) {
- response_headers_ =
- new net::HttpResponseHeaders(response_headers->raw_headers());
- }
-}
+ stream_message_loop_(base::MessageLoopProxy::current().get()) {}
StreamHandleImpl::~StreamHandleImpl() {
stream_message_loop_->PostTaskAndReply(FROM_HERE,
@@ -50,18 +35,6 @@ const GURL& StreamHandleImpl::GetURL() {
return url_;
}
-const GURL& StreamHandleImpl::GetOriginalURL() {
- return original_url_;
-}
-
-const std::string& StreamHandleImpl::GetMimeType() {
- return mime_type_;
-}
-
-scoped_refptr<net::HttpResponseHeaders> StreamHandleImpl::GetResponseHeaders() {
- return response_headers_;
-}
-
void StreamHandleImpl::AddCloseListener(const base::Closure& callback) {
close_listeners_.push_back(callback);
}
« no previous file with comments | « content/browser/streams/stream_handle_impl.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698