| 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 CancelAndIgnore() 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 void CompleteResponseStarted(); | 82 void CompleteResponseStarted(); |
| 82 void StartReading(bool is_continuation); | 83 void StartReading(bool is_continuation); |
| 83 void ResumeReading(); | 84 void ResumeReading(); |
| 84 void ReadMore(int* bytes_read); | 85 void ReadMore(int* bytes_read); |
| 85 void CompleteRead(int bytes_read); | 86 void CompleteRead(int bytes_read); |
| 86 void ResponseCompleted(); | 87 void ResponseCompleted(); |
| 87 void CallDidFinishLoading(); | 88 void CallDidFinishLoading(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 114 bool is_transferring_; | 115 bool is_transferring_; |
| 115 | 116 |
| 116 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; | 117 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; |
| 117 | 118 |
| 118 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); | 119 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 } // namespace content | 122 } // namespace content |
| 122 | 123 |
| 123 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_ | 124 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_ |
| OLD | NEW |