OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_REQUEST_JOB_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_REQUEST_JOB_H_ |
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_REQUEST_JOB_H_ | 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_REQUEST_JOB_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 ~OfflinePageRequestJob() override; | 85 ~OfflinePageRequestJob() override; |
86 | 86 |
87 // net::URLRequestJob overrides: | 87 // net::URLRequestJob overrides: |
88 void Start() override; | 88 void Start() override; |
89 void Kill() override; | 89 void Kill() override; |
90 bool IsRedirectResponse(GURL* location, int* http_status_code) override; | 90 bool IsRedirectResponse(GURL* location, int* http_status_code) override; |
91 void GetResponseInfo(net::HttpResponseInfo* info) override; | 91 void GetResponseInfo(net::HttpResponseInfo* info) override; |
92 void GetLoadTimingInfo(net::LoadTimingInfo* load_timing_info) const override; | 92 void GetLoadTimingInfo(net::LoadTimingInfo* load_timing_info) const override; |
93 bool CopyFragmentOnRedirect(const GURL& location) const override; | 93 bool CopyFragmentOnRedirect(const GURL& location) const override; |
94 int GetResponseCode() const override; | |
95 | 94 |
96 // net::URLRequestFileJob overrides: | 95 // net::URLRequestFileJob overrides: |
97 void OnOpenComplete(int result) override; | 96 void OnOpenComplete(int result) override; |
98 void OnSeekComplete(int64_t result) override; | 97 void OnSeekComplete(int64_t result) override; |
99 void OnReadComplete(net::IOBuffer* buf, int result) override; | 98 void OnReadComplete(net::IOBuffer* buf, int result) override; |
100 | 99 |
101 void OnOfflineFilePathAvailable(const base::FilePath& offline_file_path); | 100 void OnOfflineFilePathAvailable(const base::FilePath& offline_file_path); |
102 void OnOfflineRedirectAvailabe(const GURL& redirected_url); | 101 void OnOfflineRedirectAvailabe(const GURL& redirected_url); |
103 | 102 |
104 void SetDelegateForTesting(std::unique_ptr<Delegate> delegate); | 103 void SetDelegateForTesting(std::unique_ptr<Delegate> delegate); |
(...skipping 19 matching lines...) Expand all Loading... |
124 previews::PreviewsDecider* previews_decider_; | 123 previews::PreviewsDecider* previews_decider_; |
125 | 124 |
126 base::WeakPtrFactory<OfflinePageRequestJob> weak_ptr_factory_; | 125 base::WeakPtrFactory<OfflinePageRequestJob> weak_ptr_factory_; |
127 | 126 |
128 DISALLOW_COPY_AND_ASSIGN(OfflinePageRequestJob); | 127 DISALLOW_COPY_AND_ASSIGN(OfflinePageRequestJob); |
129 }; | 128 }; |
130 | 129 |
131 } // namespace offline_pages | 130 } // namespace offline_pages |
132 | 131 |
133 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_REQUEST_JOB_H_ | 132 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_REQUEST_JOB_H_ |
OLD | NEW |