Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: chrome/browser/android/offline_pages/background_loader_offliner.h

Issue 2797013002: [Offline pages] Update background loader to override the WebContentsObserver methods expected (Closed)
Patch Set: fix offliner tests Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/background_loader_offliner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/background_loader_offliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698