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_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 "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 static void CreateExternalProviders( | 47 static void CreateExternalProviders( |
48 VisitorInterface* service, | 48 VisitorInterface* service, |
49 Profile* profile, | 49 Profile* profile, |
50 ProviderCollection* provider_list); | 50 ProviderCollection* provider_list); |
51 | 51 |
52 // Sets underlying prefs and notifies provider. Only to be called by the | 52 // Sets underlying prefs and notifies provider. Only to be called by the |
53 // owned ExternalLoader instance. | 53 // owned ExternalLoader instance. |
54 virtual void SetPrefs(base::DictionaryValue* prefs); | 54 virtual void SetPrefs(base::DictionaryValue* prefs); |
55 | 55 |
56 // ExternalProvider implementation: | 56 // ExternalProvider implementation: |
57 virtual void ServiceShutdown() OVERRIDE; | 57 virtual void ServiceShutdown() override; |
58 virtual void VisitRegisteredExtension() OVERRIDE; | 58 virtual void VisitRegisteredExtension() override; |
59 virtual bool HasExtension(const std::string& id) const OVERRIDE; | 59 virtual bool HasExtension(const std::string& id) const override; |
60 virtual bool GetExtensionDetails( | 60 virtual bool GetExtensionDetails( |
61 const std::string& id, | 61 const std::string& id, |
62 Manifest::Location* location, | 62 Manifest::Location* location, |
63 scoped_ptr<base::Version>* version) const OVERRIDE; | 63 scoped_ptr<base::Version>* version) const override; |
64 | 64 |
65 virtual bool IsReady() const OVERRIDE; | 65 virtual bool IsReady() const override; |
66 | 66 |
67 static const char kExternalCrx[]; | 67 static const char kExternalCrx[]; |
68 static const char kExternalVersion[]; | 68 static const char kExternalVersion[]; |
69 static const char kExternalUpdateUrl[]; | 69 static const char kExternalUpdateUrl[]; |
70 static const char kInstallParam[]; | 70 static const char kInstallParam[]; |
71 static const char kIsBookmarkApp[]; | 71 static const char kIsBookmarkApp[]; |
72 static const char kIsFromWebstore[]; | 72 static const char kIsFromWebstore[]; |
73 static const char kKeepIfPresent[]; | 73 static const char kKeepIfPresent[]; |
74 static const char kSupportedLocales[]; | 74 static const char kSupportedLocales[]; |
75 static const char kWasInstalledByOem[]; | 75 static const char kWasInstalledByOem[]; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // Whether loaded extensions should be automatically acknowledged, so that | 113 // Whether loaded extensions should be automatically acknowledged, so that |
114 // the user doesn't see an alert about them. | 114 // the user doesn't see an alert about them. |
115 bool auto_acknowledge_; | 115 bool auto_acknowledge_; |
116 | 116 |
117 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl); | 117 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl); |
118 }; | 118 }; |
119 | 119 |
120 } // namespace extensions | 120 } // namespace extensions |
121 | 121 |
122 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ | 122 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ |
OLD | NEW |