| 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_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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 OVERRIDE; | 65 virtual bool IsReady() const OVERRIDE; |
| 66 virtual int GetCreationFlags() const OVERRIDE; | |
| 67 | 66 |
| 68 static const char kExternalCrx[]; | 67 static const char kExternalCrx[]; |
| 69 static const char kExternalVersion[]; | 68 static const char kExternalVersion[]; |
| 70 static const char kExternalUpdateUrl[]; | 69 static const char kExternalUpdateUrl[]; |
| 71 static const char kSupportedLocales[]; | 70 static const char kSupportedLocales[]; |
| 71 static const char kIsBookmarkApp[]; |
| 72 | 72 |
| 73 void set_auto_acknowledge(bool auto_acknowledge) { | 73 void set_auto_acknowledge(bool auto_acknowledge) { |
| 74 auto_acknowledge_ = auto_acknowledge; | 74 auto_acknowledge_ = auto_acknowledge; |
| 75 } | 75 } |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 // Location for external extensions that are provided by this provider from | 78 // Location for external extensions that are provided by this provider from |
| 79 // local crx files. | 79 // local crx files. |
| 80 const Extension::Location crx_location_; | 80 const Extension::Location crx_location_; |
| 81 | 81 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 103 int creation_flags_; | 103 int creation_flags_; |
| 104 | 104 |
| 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(ExternalExtensionProviderImpl); | 109 DISALLOW_COPY_AND_ASSIGN(ExternalExtensionProviderImpl); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_PROVIDER_IMPL_H_ | 112 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_PROVIDER_IMPL_H_ |
| OLD | NEW |