| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSION_PROVIDER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_PROVIDER_IMPL_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_PROVIDER_IMPL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_PROVIDER_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 void SetPrefs(base::DictionaryValue* prefs); | 55 void SetPrefs(base::DictionaryValue* prefs); |
| 56 | 56 |
| 57 // ExternalExtensionProvider implementation: | 57 // ExternalExtensionProvider 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; | 65 virtual bool IsReady() const OVERRIDE; |
| 66 | 66 |
| 67 static const char kLocation[]; | 67 static const char kLocation[]; |
| 68 static const char kState[]; | 68 static const char kState[]; |
| 69 static const char kExternalCrx[]; | 69 static const char kExternalCrx[]; |
| 70 static const char kExternalVersion[]; | 70 static const char kExternalVersion[]; |
| 71 static const char kExternalUpdateUrl[]; | 71 static const char kExternalUpdateUrl[]; |
| 72 static const char kSupportedLocales[]; | 72 static const char kSupportedLocales[]; |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 // Location for external extensions that are provided by this provider from | 75 // Location for external extensions that are provided by this provider from |
| (...skipping 20 matching lines...) Expand all Loading... |
| 96 scoped_refptr<ExternalExtensionLoader> loader_; | 96 scoped_refptr<ExternalExtensionLoader> loader_; |
| 97 | 97 |
| 98 // Creation flags to use for the extension. These flags will be used | 98 // Creation flags to use for the extension. These flags will be used |
| 99 // when calling Extenion::Create() by the crx installer. | 99 // when calling Extenion::Create() by the crx installer. |
| 100 int creation_flags_; | 100 int creation_flags_; |
| 101 | 101 |
| 102 DISALLOW_COPY_AND_ASSIGN(ExternalExtensionProviderImpl); | 102 DISALLOW_COPY_AND_ASSIGN(ExternalExtensionProviderImpl); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_PROVIDER_IMPL_H_ | 105 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_PROVIDER_IMPL_H_ |
| OLD | NEW |