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

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

Issue 2683493002: Get signals working in the EXTRA_DATA section of MHTML (Closed)
Patch Set: Approach for writing to the file afterwards instead. Created 3 years, 9 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
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_RECENT_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_RECENT_TAB_HELPER_H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_RECENT_TAB_HELPER_H_ 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_RECENT_TAB_HELPER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 explicit RecentTabHelper(content::WebContents* web_contents); 89 explicit RecentTabHelper(content::WebContents* web_contents);
90 friend class content::WebContentsUserData<RecentTabHelper>; 90 friend class content::WebContentsUserData<RecentTabHelper>;
91 91
92 bool EnsureInitialized(); 92 bool EnsureInitialized();
93 void ContinueSnapshotWithIdsToPurge(SnapshotProgressInfo* snapshot_info, 93 void ContinueSnapshotWithIdsToPurge(SnapshotProgressInfo* snapshot_info,
94 const std::vector<int64_t>& page_ids); 94 const std::vector<int64_t>& page_ids);
95 void ContinueSnapshotAfterPurge(SnapshotProgressInfo* snapshot_info, 95 void ContinueSnapshotAfterPurge(SnapshotProgressInfo* snapshot_info,
96 OfflinePageModel::DeletePageResult result); 96 OfflinePageModel::DeletePageResult result);
97 void SavePageCallback(SnapshotProgressInfo* snapshot_info, 97 void SavePageCallback(SnapshotProgressInfo* snapshot_info,
98 OfflinePageModel::SavePageResult result, 98 OfflinePageModel::SavePageResult result,
99 int64_t offline_id); 99 int64_t offline_id,
100 const base::FilePath& saved_filepath);
100 void ReportSnapshotCompleted(SnapshotProgressInfo* snapshot_info, 101 void ReportSnapshotCompleted(SnapshotProgressInfo* snapshot_info,
101 bool success); 102 bool success);
102 void ReportDownloadStatusToRequestCoordinator( 103 void ReportDownloadStatusToRequestCoordinator(
103 SnapshotProgressInfo* snapshot_info, 104 SnapshotProgressInfo* snapshot_info,
104 bool cancel_background_request); 105 bool cancel_background_request);
105 ClientId GetRecentPagesClientId() const; 106 ClientId GetRecentPagesClientId() const;
106 void SaveSnapshotForDownloads(bool replace_latest); 107 void SaveSnapshotForDownloads(bool replace_latest);
107 void CancelInFlightSnapshots(); 108 void CancelInFlightSnapshots();
108 109
109 // Page model is a service, no ownership. Can be null - for example, in 110 // Page model is a service, no ownership. Can be null - for example, in
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 bool last_n_listen_to_tab_hidden_ = false; 146 bool last_n_listen_to_tab_hidden_ = false;
146 147
147 base::WeakPtrFactory<RecentTabHelper> weak_ptr_factory_; 148 base::WeakPtrFactory<RecentTabHelper> weak_ptr_factory_;
148 149
149 DISALLOW_COPY_AND_ASSIGN(RecentTabHelper); 150 DISALLOW_COPY_AND_ASSIGN(RecentTabHelper);
150 }; 151 };
151 152
152 } // namespace offline_pages 153 } // namespace offline_pages
153 154
154 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_RECENT_TAB_HELPER_H_ 155 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_RECENT_TAB_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698