| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_BACKGROUND_FETCH_REQUEST_INFO_H_ | 5 #ifndef CONTENT_BROWSER_BACKGROUND_FETCH_REQUEST_INFO_H_ |
| 6 #define CONTENT_BROWSER_BACKGROUND_FETCH_REQUEST_INFO_H_ | 6 #define CONTENT_BROWSER_BACKGROUND_FETCH_REQUEST_INFO_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 const base::FilePath& GetFilePath() const; | 67 const base::FilePath& GetFilePath() const; |
| 68 | 68 |
| 69 // Returns the size of the file containing the response, in bytes. | 69 // Returns the size of the file containing the response, in bytes. |
| 70 int64_t GetFileSize() const; | 70 int64_t GetFileSize() const; |
| 71 | 71 |
| 72 // Returns the time at which the response was completed. | 72 // Returns the time at which the response was completed. |
| 73 const base::Time& GetResponseTime() const; | 73 const base::Time& GetResponseTime() const; |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 friend class base::RefCountedThreadSafe<BackgroundFetchRequestInfo>; | 76 friend class base::RefCountedThreadSafe<BackgroundFetchRequestInfo>; |
| 77 friend class BackgroundFetchCrossOriginFilterTest; |
| 77 | 78 |
| 78 ~BackgroundFetchRequestInfo(); | 79 ~BackgroundFetchRequestInfo(); |
| 79 | 80 |
| 80 // ---- Data associated with the request ------------------------------------- | 81 // ---- Data associated with the request ------------------------------------- |
| 81 | 82 |
| 82 int request_index_ = kInvalidBackgroundFetchRequestIndex; | 83 int request_index_ = kInvalidBackgroundFetchRequestIndex; |
| 83 ServiceWorkerFetchRequest fetch_request_; | 84 ServiceWorkerFetchRequest fetch_request_; |
| 84 | 85 |
| 85 // ---- Data associated with the in-progress download ------------------------ | 86 // ---- Data associated with the in-progress download ------------------------ |
| 86 | 87 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 103 base::FilePath file_path_; | 104 base::FilePath file_path_; |
| 104 int64_t file_size_ = 0; | 105 int64_t file_size_ = 0; |
| 105 base::Time response_time_; | 106 base::Time response_time_; |
| 106 | 107 |
| 107 DISALLOW_COPY_AND_ASSIGN(BackgroundFetchRequestInfo); | 108 DISALLOW_COPY_AND_ASSIGN(BackgroundFetchRequestInfo); |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 } // namespace content | 111 } // namespace content |
| 111 | 112 |
| 112 #endif // CONTENT_BROWSER_BACKGROUND_FETCH_REQUEST_INFO_H_ | 113 #endif // CONTENT_BROWSER_BACKGROUND_FETCH_REQUEST_INFO_H_ |
| OLD | NEW |