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

Side by Side Diff: chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h

Issue 2768083004: Use OneShotTimer in AddToHomescreenDataFetcher (Closed)
Patch Set: Timer addressing comments 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
« no previous file with comments | « no previous file | chrome/browser/android/webapps/add_to_homescreen_data_fetcher.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_WEBAPPS_ADD_TO_HOMESCREEN_DATA_FETCHER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DATA_FETCHER_H_
6 #define CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DATA_FETCHER_H_ 6 #define CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DATA_FETCHER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/task/cancelable_task_tracker.h" 10 #include "base/task/cancelable_task_tracker.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 scoped_refptr<base::TaskRunner> background_task_runner_; 126 scoped_refptr<base::TaskRunner> background_task_runner_;
127 127
128 Observer* weak_observer_; 128 Observer* weak_observer_;
129 129
130 // The icons must only be set on the UI thread for thread safety. 130 // The icons must only be set on the UI thread for thread safety.
131 SkBitmap badge_icon_; 131 SkBitmap badge_icon_;
132 SkBitmap primary_icon_; 132 SkBitmap primary_icon_;
133 ShortcutInfo shortcut_info_; 133 ShortcutInfo shortcut_info_;
134 134
135 base::CancelableTaskTracker favicon_task_tracker_; 135 base::CancelableTaskTracker favicon_task_tracker_;
136 base::Timer data_timeout_timer_; 136 base::OneShotTimer data_timeout_timer_;
137 137
138 const int ideal_icon_size_in_px_; 138 const int ideal_icon_size_in_px_;
139 const int minimum_icon_size_in_px_; 139 const int minimum_icon_size_in_px_;
140 const int ideal_splash_image_size_in_px_; 140 const int ideal_splash_image_size_in_px_;
141 const int minimum_splash_image_size_in_px_; 141 const int minimum_splash_image_size_in_px_;
142 const int badge_size_in_px_; 142 const int badge_size_in_px_;
143 143
144 // Indicates whether to check WebAPK compatibility. 144 // Indicates whether to check WebAPK compatibility.
145 bool check_webapk_compatibility_; 145 bool check_webapk_compatibility_;
146 bool is_waiting_for_web_application_info_; 146 bool is_waiting_for_web_application_info_;
147 bool is_installable_check_complete_; 147 bool is_installable_check_complete_;
148 bool is_icon_saved_; 148 bool is_icon_saved_;
149 bool is_ready_; 149 bool is_ready_;
150 150
151 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenDataFetcher); 151 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenDataFetcher);
152 }; 152 };
153 153
154 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DATA_FETCHER_H_ 154 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_DATA_FETCHER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698