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

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: Latest master for CQ 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 410
411 // Returns the ExtensionInfo from the prefs for delayed install information 411 // Returns the ExtensionInfo from the prefs for delayed install information
412 // for |extension_id|, if we have any. Otherwise returns NULL. 412 // for |extension_id|, if we have any. Otherwise returns NULL.
413 scoped_ptr<ExtensionInfo> GetDelayedInstallInfo( 413 scoped_ptr<ExtensionInfo> GetDelayedInstallInfo(
414 const std::string& extension_id) const; 414 const std::string& extension_id) const;
415 415
416 // Returns information about all the extensions that have delayed install 416 // Returns information about all the extensions that have delayed install
417 // information. 417 // information.
418 scoped_ptr<ExtensionsInfo> GetAllDelayedInstallInfo() const; 418 scoped_ptr<ExtensionsInfo> GetAllDelayedInstallInfo() const;
419 419
420 // We allow the web store to set a string containing login information when a
421 // purchase is made, so that when a user logs into sync with a different
422 // account we can recognize the situation. The Get function returns true if
423 // there was previously stored data (placing it in |result|), or false
424 // otherwise. The Set will overwrite any previous login.
425 bool GetWebStoreLogin(std::string* result);
426 void SetWebStoreLogin(const std::string& login);
427
428 // Returns true if the user repositioned the app on the app launcher via drag 420 // Returns true if the user repositioned the app on the app launcher via drag
429 // and drop. 421 // and drop.
430 bool WasAppDraggedByUser(const std::string& extension_id); 422 bool WasAppDraggedByUser(const std::string& extension_id);
431 423
432 // Sets a flag indicating that the user repositioned the app on the app 424 // Sets a flag indicating that the user repositioned the app on the app
433 // launcher by drag and dropping it. 425 // launcher by drag and dropping it.
434 void SetAppDraggedByUser(const std::string& extension_id); 426 void SetAppDraggedByUser(const std::string& extension_id);
435 427
436 // Sets a preference value that is controlled by the extension. In other 428 // Sets a preference value that is controlled by the extension. In other
437 // words, this is not a pref value *about* the extension but something 429 // words, this is not a pref value *about* the extension but something
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 scoped_ptr<TimeProvider> time_provider_; 645 scoped_ptr<TimeProvider> time_provider_;
654 646
655 bool extensions_disabled_; 647 bool extensions_disabled_;
656 648
657 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 649 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
658 }; 650 };
659 651
660 } // namespace extensions 652 } // namespace extensions
661 653
662 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 654 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/webstore_private/webstore_private_api.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698