| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_EXTENSIONS_EXTENSION_PREFS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 bool DidExtensionEscalatePermissions(const std::string& id); | 87 bool DidExtensionEscalatePermissions(const std::string& id); |
| 88 | 88 |
| 89 // Returns the last value set via SetLastPingDay. If there isn't such a | 89 // Returns the last value set via SetLastPingDay. If there isn't such a |
| 90 // pref, the returned Time will return true for is_null(). | 90 // pref, the returned Time will return true for is_null(). |
| 91 base::Time LastPingDay(const std::string& extension_id); | 91 base::Time LastPingDay(const std::string& extension_id); |
| 92 | 92 |
| 93 // The time stored is based on the server's perspective of day start time, not | 93 // The time stored is based on the server's perspective of day start time, not |
| 94 // the client's. | 94 // the client's. |
| 95 void SetLastPingDay(const std::string& extension_id, const base::Time& time); | 95 void SetLastPingDay(const std::string& extension_id, const base::Time& time); |
| 96 | 96 |
| 97 // Returns true if the user enabled this extension to be loaded in incognito |
| 98 // mode. |
| 99 bool IsIncognitoEnabled(const std::string& extension_id); |
| 100 void SetIsIncognitoEnabled(const std::string& extension_id, bool enabled); |
| 97 | 101 |
| 98 // Saves ExtensionInfo for each installed extension with the path to the | 102 // Saves ExtensionInfo for each installed extension with the path to the |
| 99 // version directory and the location. Blacklisted extensions won't be saved | 103 // version directory and the location. Blacklisted extensions won't be saved |
| 100 // and neither will external extensions the user has explicitly uninstalled. | 104 // and neither will external extensions the user has explicitly uninstalled. |
| 101 // Caller takes ownership of returned structure. | 105 // Caller takes ownership of returned structure. |
| 102 static ExtensionsInfo* CollectExtensionsInfo(ExtensionPrefs* extension_prefs); | 106 static ExtensionsInfo* CollectExtensionsInfo(ExtensionPrefs* extension_prefs); |
| 103 | 107 |
| 104 private: | 108 private: |
| 105 | 109 |
| 106 // Converts absolute paths in the pref to paths relative to the | 110 // Converts absolute paths in the pref to paths relative to the |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 FilePath install_directory_; | 149 FilePath install_directory_; |
| 146 | 150 |
| 147 // The URLs of all of the toolstrips. | 151 // The URLs of all of the toolstrips. |
| 148 URLList shelf_order_; | 152 URLList shelf_order_; |
| 149 | 153 |
| 150 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 154 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 151 }; | 155 }; |
| 152 | 156 |
| 153 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 157 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| 154 | 158 |
| OLD | NEW |