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

Side by Side Diff: content/browser/loader/stream_resource_handler.cc

Issue 398903002: Plumb redirect info out of net, through content, and into child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: darin comments Created 6 years, 4 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 #include "content/browser/loader/stream_resource_handler.h" 5 #include "content/browser/loader/stream_resource_handler.h"
6 6
7 #include "base/guid.h" 7 #include "base/guid.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "content/browser/streams/stream.h" 9 #include "content/browser/streams/stream.h"
10 #include "content/browser/streams/stream_registry.h" 10 #include "content/browser/streams/stream_registry.h"
(...skipping 18 matching lines...) Expand all
29 29
30 StreamResourceHandler::~StreamResourceHandler() { 30 StreamResourceHandler::~StreamResourceHandler() {
31 stream_->RemoveWriteObserver(this); 31 stream_->RemoveWriteObserver(this);
32 } 32 }
33 33
34 bool StreamResourceHandler::OnUploadProgress(uint64 position, 34 bool StreamResourceHandler::OnUploadProgress(uint64 position,
35 uint64 size) { 35 uint64 size) {
36 return true; 36 return true;
37 } 37 }
38 38
39 bool StreamResourceHandler::OnRequestRedirected(const GURL& url, 39 bool StreamResourceHandler::OnRequestRedirected(
40 ResourceResponse* resp, 40 const net::RedirectInfo& redirect_info,
41 bool* defer) { 41 ResourceResponse* resp,
42 bool* defer) {
42 return true; 43 return true;
43 } 44 }
44 45
45 bool StreamResourceHandler::OnResponseStarted(ResourceResponse* resp, 46 bool StreamResourceHandler::OnResponseStarted(ResourceResponse* resp,
46 bool* defer) { 47 bool* defer) {
47 return true; 48 return true;
48 } 49 }
49 50
50 bool StreamResourceHandler::OnWillStart(const GURL& url, bool* defer) { 51 bool StreamResourceHandler::OnWillStart(const GURL& url, bool* defer) {
51 return true; 52 return true;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 102
102 void StreamResourceHandler::OnSpaceAvailable(Stream* stream) { 103 void StreamResourceHandler::OnSpaceAvailable(Stream* stream) {
103 controller()->Resume(); 104 controller()->Resume();
104 } 105 }
105 106
106 void StreamResourceHandler::OnClose(Stream* stream) { 107 void StreamResourceHandler::OnClose(Stream* stream) {
107 controller()->Cancel(); 108 controller()->Cancel();
108 } 109 }
109 110
110 } // namespace content 111 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/stream_resource_handler.h ('k') | content/browser/loader/sync_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698