| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 200 |
| 201 // Returns true if the user enabled this extension to be loaded in incognito | 201 // Returns true if the user enabled this extension to be loaded in incognito |
| 202 // mode. | 202 // mode. |
| 203 bool IsIncognitoEnabled(const std::string& extension_id); | 203 bool IsIncognitoEnabled(const std::string& extension_id); |
| 204 void SetIsIncognitoEnabled(const std::string& extension_id, bool enabled); | 204 void SetIsIncognitoEnabled(const std::string& extension_id, bool enabled); |
| 205 | 205 |
| 206 // Returns true if the user has chosen to allow this extension to inject | 206 // Returns true if the user has chosen to allow this extension to inject |
| 207 // scripts into pages with file URLs. | 207 // scripts into pages with file URLs. |
| 208 bool AllowFileAccess(const std::string& extension_id); | 208 bool AllowFileAccess(const std::string& extension_id); |
| 209 void SetAllowFileAccess(const std::string& extension_id, bool allow); | 209 void SetAllowFileAccess(const std::string& extension_id, bool allow); |
| 210 bool HasAllowFileAccessSetting(const std::string& extension_id) const; |
| 210 | 211 |
| 211 // Get the launch type preference. If no preference is set, return | 212 // Get the launch type preference. If no preference is set, return |
| 212 // |default_pref_value|. | 213 // |default_pref_value|. |
| 213 LaunchType GetLaunchType(const std::string& extension_id, | 214 LaunchType GetLaunchType(const std::string& extension_id, |
| 214 LaunchType default_pref_value); | 215 LaunchType default_pref_value); |
| 215 | 216 |
| 216 void SetLaunchType(const std::string& extension_id, LaunchType launch_type); | 217 void SetLaunchType(const std::string& extension_id, LaunchType launch_type); |
| 217 | 218 |
| 218 // Find the right launch container based on the launch type. | 219 // Find the right launch container based on the launch type. |
| 219 // If |extension|'s prefs do not have a launch type set, then | 220 // If |extension|'s prefs do not have a launch type set, then |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 | 480 |
| 480 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_; | 481 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_; |
| 481 | 482 |
| 482 // The URLs of all of the toolstrips. | 483 // The URLs of all of the toolstrips. |
| 483 URLList shelf_order_; | 484 URLList shelf_order_; |
| 484 | 485 |
| 485 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 486 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 486 }; | 487 }; |
| 487 | 488 |
| 488 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 489 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| OLD | NEW |