| 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_BACKGROUND_LOADER_OFFLINER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_BACKGROUND_LOADER_OFFLINER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_BACKGROUND_LOADER_OFFLINER_H_ | 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_BACKGROUND_LOADER_OFFLINER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/android/application_status_listener.h" | 10 #include "base/android/application_status_listener.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 content::WebContents* contents); | 40 content::WebContents* contents); |
| 41 | 41 |
| 42 // Offliner implementation. | 42 // Offliner implementation. |
| 43 bool LoadAndSave(const SavePageRequest& request, | 43 bool LoadAndSave(const SavePageRequest& request, |
| 44 const CompletionCallback& completion_callback, | 44 const CompletionCallback& completion_callback, |
| 45 const ProgressCallback& progress_callback) override; | 45 const ProgressCallback& progress_callback) override; |
| 46 void Cancel(const CancelCallback& callback) override; | 46 void Cancel(const CancelCallback& callback) override; |
| 47 bool HandleTimeout(const SavePageRequest& request) override; | 47 bool HandleTimeout(const SavePageRequest& request) override; |
| 48 | 48 |
| 49 // WebContentsObserver implementation. | 49 // WebContentsObserver implementation. |
| 50 void DocumentLoadedInFrame(content::RenderFrameHost* render_frame) override; | 50 void DocumentAvailableInMainFrame() override; |
| 51 void DidStopLoading() override; | 51 void DocumentOnLoadCompletedInMainFrame() override; |
| 52 void RenderProcessGone(base::TerminationStatus status) override; | 52 void RenderProcessGone(base::TerminationStatus status) override; |
| 53 void WebContentsDestroyed() override; | 53 void WebContentsDestroyed() override; |
| 54 void DidFinishNavigation( | 54 void DidFinishNavigation( |
| 55 content::NavigationHandle* navigation_handle) override; | 55 content::NavigationHandle* navigation_handle) override; |
| 56 | 56 |
| 57 // SnapshotController::Client implementation. | 57 // SnapshotController::Client implementation. |
| 58 void StartSnapshot() override; | 58 void StartSnapshot() override; |
| 59 | 59 |
| 60 void SetPageDelayForTest(long delay_ms); | 60 void SetPageDelayForTest(long delay_ms); |
| 61 void OnNetworkBytesChanged(int64_t bytes); | 61 void OnNetworkBytesChanged(int64_t bytes); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 // Callback for cancel. | 109 // Callback for cancel. |
| 110 CancelCallback cancel_callback_; | 110 CancelCallback cancel_callback_; |
| 111 | 111 |
| 112 base::WeakPtrFactory<BackgroundLoaderOffliner> weak_ptr_factory_; | 112 base::WeakPtrFactory<BackgroundLoaderOffliner> weak_ptr_factory_; |
| 113 DISALLOW_COPY_AND_ASSIGN(BackgroundLoaderOffliner); | 113 DISALLOW_COPY_AND_ASSIGN(BackgroundLoaderOffliner); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace offline_pages | 116 } // namespace offline_pages |
| 117 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_BACKGROUND_LOADER_OFFLINER_H_ | 117 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_BACKGROUND_LOADER_OFFLINER_H_ |
| OLD | NEW |