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_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
87 // Deprecated. Use ShowPackageInfoOnPage. | 87 // Deprecated. Use ShowPackageInfoOnPage. |
88 bool ShowPackageInfo(const std::string& package_name); | 88 bool ShowPackageInfo(const std::string& package_name); |
89 | 89 |
90 // Shows package info for ARC package at the specified page. | 90 // Shows package info for ARC package at the specified page. |
91 bool ShowPackageInfoOnPage(const std::string& package_name, | 91 bool ShowPackageInfoOnPage(const std::string& package_name, |
92 mojom::ShowPackageInfoPage page); | 92 mojom::ShowPackageInfoPage page); |
93 | 93 |
94 // Returns true if |id| represents either ARC app or ARC shelf group. | 94 // Returns true if |id| represents either ARC app or ARC shelf group. |
95 bool IsArcItem(content::BrowserContext* context, const std::string& id); | 95 bool IsArcItem(content::BrowserContext* context, const std::string& id); |
96 | 96 |
97 // Set CPU restriction for ARC to prioritize the container startup. | |
Yusuke Sato
2017/05/23 19:41:52
Sets
yueli
2017/05/23 22:59:56
Done.
| |
98 void PrioritizeArcContainerStartup(); | |
Yusuke Sato
2017/05/23 19:41:52
Could you move it to components/arc/arc_util.h?
yueli
2017/05/23 22:59:57
Done.
| |
99 | |
97 } // namespace arc | 100 } // namespace arc |
98 | 101 |
99 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ | 102 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_UTILS_H_ |
OLD | NEW |