Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: chrome/browser/extensions/extension_prefs.h

Issue 14858037: Move [Get|Set]WebStoreLogin methods from ExtensionPrefs to WebstorePrivateAPI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 414
415 // Returns the ExtensionInfo from the prefs for delayed install information 415 // Returns the ExtensionInfo from the prefs for delayed install information
416 // for |extension_id|, if we have any. Otherwise returns NULL. 416 // for |extension_id|, if we have any. Otherwise returns NULL.
417 scoped_ptr<ExtensionInfo> GetDelayedInstallInfo( 417 scoped_ptr<ExtensionInfo> GetDelayedInstallInfo(
418 const std::string& extension_id) const; 418 const std::string& extension_id) const;
419 419
420 // Returns information about all the extensions that have delayed install 420 // Returns information about all the extensions that have delayed install
421 // information. 421 // information.
422 scoped_ptr<ExtensionsInfo> GetAllDelayedInstallInfo() const; 422 scoped_ptr<ExtensionsInfo> GetAllDelayedInstallInfo() const;
423 423
424 // We allow the web store to set a string containing login information when a
425 // purchase is made, so that when a user logs into sync with a different
426 // account we can recognize the situation. The Get function returns true if
427 // there was previously stored data (placing it in |result|), or false
428 // otherwise. The Set will overwrite any previous login.
429 bool GetWebStoreLogin(std::string* result);
430 void SetWebStoreLogin(const std::string& login);
431
432 // Returns true if the user repositioned the app on the app launcher via drag 424 // Returns true if the user repositioned the app on the app launcher via drag
433 // and drop. 425 // and drop.
434 bool WasAppDraggedByUser(const std::string& extension_id); 426 bool WasAppDraggedByUser(const std::string& extension_id);
435 427
436 // Sets a flag indicating that the user repositioned the app on the app 428 // Sets a flag indicating that the user repositioned the app on the app
437 // launcher by drag and dropping it. 429 // launcher by drag and dropping it.
438 void SetAppDraggedByUser(const std::string& extension_id); 430 void SetAppDraggedByUser(const std::string& extension_id);
439 431
440 // The extension's update URL data. If not empty, the ExtensionUpdater 432 // The extension's update URL data. If not empty, the ExtensionUpdater
441 // will append a ap= parameter to the URL when checking if a new version 433 // will append a ap= parameter to the URL when checking if a new version
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 scoped_refptr<ContentSettingsStore> content_settings_store_; 657 scoped_refptr<ContentSettingsStore> content_settings_store_;
666 658
667 scoped_ptr<TimeProvider> time_provider_; 659 scoped_ptr<TimeProvider> time_provider_;
668 660
669 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 661 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
670 }; 662 };
671 663
672 } // namespace extensions 664 } // namespace extensions
673 665
674 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 666 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698