| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 std::set<std::string> GetIdleInstallInfoIds(); | 376 std::set<std::string> GetIdleInstallInfoIds(); |
| 377 | 377 |
| 378 // We allow the web store to set a string containing login information when a | 378 // We allow the web store to set a string containing login information when a |
| 379 // purchase is made, so that when a user logs into sync with a different | 379 // purchase is made, so that when a user logs into sync with a different |
| 380 // account we can recognize the situation. The Get function returns true if | 380 // account we can recognize the situation. The Get function returns true if |
| 381 // there was previously stored data (placing it in |result|), or false | 381 // there was previously stored data (placing it in |result|), or false |
| 382 // otherwise. The Set will overwrite any previous login. | 382 // otherwise. The Set will overwrite any previous login. |
| 383 bool GetWebStoreLogin(std::string* result); | 383 bool GetWebStoreLogin(std::string* result); |
| 384 void SetWebStoreLogin(const std::string& login); | 384 void SetWebStoreLogin(const std::string& login); |
| 385 | 385 |
| 386 // Returns true if the one-time Sideload Wipeout effort has been executed. |
| 387 bool GetSideloadWipeoutDone() const; |
| 388 // Mark the one-time Sideload Wipeout effort as finished. |
| 389 void SetSideloadWipeoutDone(); |
| 390 |
| 386 // Returns true if the user repositioned the app on the app launcher via drag | 391 // Returns true if the user repositioned the app on the app launcher via drag |
| 387 // and drop. | 392 // and drop. |
| 388 bool WasAppDraggedByUser(const std::string& extension_id); | 393 bool WasAppDraggedByUser(const std::string& extension_id); |
| 389 | 394 |
| 390 // Sets a flag indicating that the user repositioned the app on the app | 395 // Sets a flag indicating that the user repositioned the app on the app |
| 391 // launcher by drag and dropping it. | 396 // launcher by drag and dropping it. |
| 392 void SetAppDraggedByUser(const std::string& extension_id); | 397 void SetAppDraggedByUser(const std::string& extension_id); |
| 393 | 398 |
| 394 // The extension's update URL data. If not empty, the ExtensionUpdater | 399 // The extension's update URL data. If not empty, the ExtensionUpdater |
| 395 // will append a ap= parameter to the URL when checking if a new version | 400 // will append a ap= parameter to the URL when checking if a new version |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 scoped_ptr<ExtensionSorting> extension_sorting_; | 587 scoped_ptr<ExtensionSorting> extension_sorting_; |
| 583 | 588 |
| 584 scoped_refptr<ContentSettingsStore> content_settings_store_; | 589 scoped_refptr<ContentSettingsStore> content_settings_store_; |
| 585 | 590 |
| 586 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 591 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 587 }; | 592 }; |
| 588 | 593 |
| 589 } // namespace extensions | 594 } // namespace extensions |
| 590 | 595 |
| 591 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 596 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| OLD | NEW |