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

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

Issue 10875065: Disable install of new default_apps for existing users (Closed) Base URL: http://git.chromium.org/git/chromium.git@disable_sync_behav
Patch Set: . Created 8 years, 3 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 | Annotate | Revision Log
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_EXTERNAL_PROVIDER_IMPL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/external_provider_interface.h" 10 #include "chrome/browser/extensions/external_provider_interface.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual ~ExternalProviderImpl(); 45 virtual ~ExternalProviderImpl();
46 46
47 // Populates a list with providers for all known sources. 47 // Populates a list with providers for all known sources.
48 static void CreateExternalProviders( 48 static void CreateExternalProviders(
49 VisitorInterface* service, 49 VisitorInterface* service,
50 Profile* profile, 50 Profile* profile,
51 ProviderCollection* provider_list); 51 ProviderCollection* provider_list);
52 52
53 // Sets underlying prefs and notifies provider. Only to be called by the 53 // Sets underlying prefs and notifies provider. Only to be called by the
54 // owned ExternalLoader instance. 54 // owned ExternalLoader instance.
55 void SetPrefs(base::DictionaryValue* prefs); 55 virtual void SetPrefs(base::DictionaryValue* prefs);
56 56
57 // ExternalProvider implementation: 57 // ExternalProvider implementation:
58 virtual void ServiceShutdown() OVERRIDE; 58 virtual void ServiceShutdown() OVERRIDE;
59 virtual void VisitRegisteredExtension() OVERRIDE; 59 virtual void VisitRegisteredExtension() OVERRIDE;
60 virtual bool HasExtension(const std::string& id) const OVERRIDE; 60 virtual bool HasExtension(const std::string& id) const OVERRIDE;
61 virtual bool GetExtensionDetails(const std::string& id, 61 virtual bool GetExtensionDetails(const std::string& id,
62 Extension::Location* location, 62 Extension::Location* location,
63 scoped_ptr<Version>* version) const OVERRIDE; 63 scoped_ptr<Version>* version) const OVERRIDE;
64 64
65 virtual bool IsReady() const OVERRIDE; 65 virtual bool IsReady() const OVERRIDE;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Whether loaded extensions should be automatically acknowledged, so that 105 // Whether loaded extensions should be automatically acknowledged, so that
106 // the user doesn't see an alert about them. 106 // the user doesn't see an alert about them.
107 bool auto_acknowledge_; 107 bool auto_acknowledge_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl); 109 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl);
110 }; 110 };
111 111
112 } // namespace extensions 112 } // namespace extensions
113 113
114 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ 114 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698