| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "content/browser/renderer_host/resource_handler.h" | 10 #include "content/browser/renderer_host/resource_handler.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 // SSLErrorHandler::Delegate implementation: | 69 // SSLErrorHandler::Delegate implementation: |
| 70 virtual void CancelSSLRequest(const GlobalRequestID& id, | 70 virtual void CancelSSLRequest(const GlobalRequestID& id, |
| 71 int error, | 71 int error, |
| 72 const net::SSLInfo* ssl_info) OVERRIDE; | 72 const net::SSLInfo* ssl_info) OVERRIDE; |
| 73 virtual void ContinueSSLRequest(const GlobalRequestID& id) OVERRIDE; | 73 virtual void ContinueSSLRequest(const GlobalRequestID& id) OVERRIDE; |
| 74 | 74 |
| 75 // ResourceController implementation: | 75 // ResourceController implementation: |
| 76 virtual void Resume() OVERRIDE; | 76 virtual void Resume() OVERRIDE; |
| 77 virtual void Cancel() OVERRIDE; | 77 virtual void Cancel() OVERRIDE; |
| 78 virtual void CancelWithError(int error) OVERRIDE; |
| 78 | 79 |
| 79 void StartRequestInternal(); | 80 void StartRequestInternal(); |
| 80 void CancelRequestInternal(int error, bool from_renderer); | 81 void CancelRequestInternal(int error, bool from_renderer); |
| 81 bool CompleteResponseStarted(); | 82 bool CompleteResponseStarted(); |
| 82 void StartReading(); | 83 void StartReading(); |
| 83 bool ReadMore(int* bytes_read); | 84 bool ReadMore(int* bytes_read); |
| 84 bool CompleteRead(int* bytes_read); | 85 bool CompleteRead(int* bytes_read); |
| 85 void ResponseCompleted(); | 86 void ResponseCompleted(); |
| 86 bool PauseRequestIfNeeded(); | 87 bool PauseRequestIfNeeded(); |
| 87 void PauseRequest(bool pause); | 88 void PauseRequest(bool pause); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // consumer. We are waiting for a notification to complete the transfer, at | 121 // consumer. We are waiting for a notification to complete the transfer, at |
| 121 // which point we'll receive a new ResourceHandler. | 122 // which point we'll receive a new ResourceHandler. |
| 122 bool is_transferring_; | 123 bool is_transferring_; |
| 123 | 124 |
| 124 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); | 125 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 } // namespace content | 128 } // namespace content |
| 128 | 129 |
| 129 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_ | 130 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_ |
| OLD | NEW |