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 #include "chrome/browser/android/offline_pages/offline_page_request_job.h" | 5 #include "chrome/browser/android/offline_pages/offline_page_request_job.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 DCHECK(fake_headers_for_redirect_->IsRedirect(nullptr)); | 710 DCHECK(fake_headers_for_redirect_->IsRedirect(nullptr)); |
711 | 711 |
712 URLRequestJob::NotifyHeadersComplete(); | 712 URLRequestJob::NotifyHeadersComplete(); |
713 } | 713 } |
714 | 714 |
715 void OfflinePageRequestJob::SetDelegateForTesting( | 715 void OfflinePageRequestJob::SetDelegateForTesting( |
716 std::unique_ptr<Delegate> delegate) { | 716 std::unique_ptr<Delegate> delegate) { |
717 delegate_ = std::move(delegate); | 717 delegate_ = std::move(delegate); |
718 } | 718 } |
719 | 719 |
| 720 bool OfflinePageRequestJob::CanAccessFile(const base::FilePath& original_path, |
| 721 const base::FilePath& absolute_path) { |
| 722 return true; |
| 723 } |
| 724 |
720 } // namespace offline_pages | 725 } // namespace offline_pages |
OLD | NEW |