OLD | NEW |
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_UI_APP_LIST_ARC_ARC_APP_LIST_PREFS_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_LIST_PREFS_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_LIST_PREFS_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_LIST_PREFS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 return package_list_initial_refreshed_; | 239 return package_list_initial_refreshed_; |
240 } | 240 } |
241 | 241 |
242 std::unordered_set<std::string> GetAppsForPackage( | 242 std::unordered_set<std::string> GetAppsForPackage( |
243 const std::string& package_name) const; | 243 const std::string& package_name) const; |
244 | 244 |
245 void SetDefaltAppsReadyCallback(base::Closure callback); | 245 void SetDefaltAppsReadyCallback(base::Closure callback); |
246 void SimulateDefaultAppAvailabilityTimeoutForTesting(); | 246 void SimulateDefaultAppAvailabilityTimeoutForTesting(); |
247 | 247 |
248 private: | 248 private: |
249 friend class ChromeLauncherControllerImplTest; | 249 friend class ChromeLauncherControllerTest; |
250 friend class ArcAppModelBuilderTest; | 250 friend class ArcAppModelBuilderTest; |
251 | 251 |
252 // See the Create methods. | 252 // See the Create methods. |
253 ArcAppListPrefs( | 253 ArcAppListPrefs( |
254 Profile* profile, | 254 Profile* profile, |
255 arc::InstanceHolder<arc::mojom::AppInstance>* app_instance_holder); | 255 arc::InstanceHolder<arc::mojom::AppInstance>* app_instance_holder); |
256 | 256 |
257 // arc::InstanceHolder<arc::mojom::AppInstance>::Observer: | 257 // arc::InstanceHolder<arc::mojom::AppInstance>::Observer: |
258 void OnInstanceReady() override; | 258 void OnInstanceReady() override; |
259 void OnInstanceClosed() override; | 259 void OnInstanceClosed() override; |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 base::Closure default_apps_ready_callback_; | 435 base::Closure default_apps_ready_callback_; |
436 int last_shown_batch_installation_revision_ = -1; | 436 int last_shown_batch_installation_revision_ = -1; |
437 int current_batch_installation_revision_ = 0; | 437 int current_batch_installation_revision_ = 0; |
438 | 438 |
439 base::WeakPtrFactory<ArcAppListPrefs> weak_ptr_factory_; | 439 base::WeakPtrFactory<ArcAppListPrefs> weak_ptr_factory_; |
440 | 440 |
441 DISALLOW_COPY_AND_ASSIGN(ArcAppListPrefs); | 441 DISALLOW_COPY_AND_ASSIGN(ArcAppListPrefs); |
442 }; | 442 }; |
443 | 443 |
444 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_LIST_PREFS_H_ | 444 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_LIST_PREFS_H_ |
OLD | NEW |