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