| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |