| 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_LOADER_RESOURCE_LOADER_H_ |    5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ | 
|    6 #define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ |    6 #define CONTENT_BROWSER_LOADER_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/loader/resource_handler.h" |   10 #include "content/browser/loader/resource_handler.h" | 
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   79   void CancelCertificateSelection() override; |   79   void CancelCertificateSelection() override; | 
|   80  |   80  | 
|   81   // ResourceController implementation: |   81   // ResourceController implementation: | 
|   82   void Resume() override; |   82   void Resume() override; | 
|   83   void Cancel() override; |   83   void Cancel() override; | 
|   84   void CancelAndIgnore() override; |   84   void CancelAndIgnore() override; | 
|   85   void CancelWithError(int error_code) override; |   85   void CancelWithError(int error_code) override; | 
|   86  |   86  | 
|   87   void StartRequestInternal(); |   87   void StartRequestInternal(); | 
|   88   void CancelRequestInternal(int error, bool from_renderer); |   88   void CancelRequestInternal(int error, bool from_renderer); | 
|   89   // Stores the SignedCertificateTimestamps held in |sct_list| in the |  | 
|   90   // SignedCertificateTimestampStore singleton, associated with |process_id|. |  | 
|   91   // On return, |sct_ids| contains the assigned ID and verification status of |  | 
|   92   // each SignedCertificateTimestamp. |  | 
|   93   void StoreSignedCertificateTimestamps( |  | 
|   94       const net::SignedCertificateTimestampAndStatusList& sct_list, |  | 
|   95       int process_id, |  | 
|   96       SignedCertificateTimestampIDStatusList* sct_ids); |  | 
|   97   void CompleteResponseStarted(); |   89   void CompleteResponseStarted(); | 
|   98   void StartReading(bool is_continuation); |   90   void StartReading(bool is_continuation); | 
|   99   void ResumeReading(); |   91   void ResumeReading(); | 
|  100   void ReadMore(int* bytes_read); |   92   void ReadMore(int* bytes_read); | 
|  101   // Passes a read result to the handler. |   93   // Passes a read result to the handler. | 
|  102   void CompleteRead(int bytes_read); |   94   void CompleteRead(int bytes_read); | 
|  103   void ResponseCompleted(); |   95   void ResponseCompleted(); | 
|  104   void CallDidFinishLoading(); |   96   void CallDidFinishLoading(); | 
|  105   void RecordHistograms(); |   97   void RecordHistograms(); | 
|  106  |   98  | 
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  146   bool is_transferring_; |  138   bool is_transferring_; | 
|  147  |  139  | 
|  148   base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; |  140   base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; | 
|  149  |  141  | 
|  150   DISALLOW_COPY_AND_ASSIGN(ResourceLoader); |  142   DISALLOW_COPY_AND_ASSIGN(ResourceLoader); | 
|  151 }; |  143 }; | 
|  152  |  144  | 
|  153 }  // namespace content |  145 }  // namespace content | 
|  154  |  146  | 
|  155 #endif  // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ |  147 #endif  // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ | 
| OLD | NEW |