| 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 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; |
| 66 | 67 |
| 67 static const char kLocation[]; | 68 static const char kLocation[]; |
| 68 static const char kState[]; | 69 static const char kState[]; |
| 69 static const char kExternalCrx[]; | 70 static const char kExternalCrx[]; |
| 70 static const char kExternalVersion[]; | 71 static const char kExternalVersion[]; |
| 71 static const char kExternalUpdateUrl[]; | 72 static const char kExternalUpdateUrl[]; |
| 72 static const char kSupportedLocales[]; | 73 static const char kSupportedLocales[]; |
| 73 | 74 |
| 74 void set_auto_acknowledge(bool auto_acknowledge) { | 75 void set_auto_acknowledge(bool auto_acknowledge) { |
| 75 auto_acknowledge_ = auto_acknowledge; | 76 auto_acknowledge_ = auto_acknowledge; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 104 int creation_flags_; | 105 int creation_flags_; |
| 105 | 106 |
| 106 // Whether loaded extensions should be automatically acknowledged, so that | 107 // Whether loaded extensions should be automatically acknowledged, so that |
| 107 // the user doesn't see an alert about them. | 108 // the user doesn't see an alert about them. |
| 108 bool auto_acknowledge_; | 109 bool auto_acknowledge_; |
| 109 | 110 |
| 110 DISALLOW_COPY_AND_ASSIGN(ExternalExtensionProviderImpl); | 111 DISALLOW_COPY_AND_ASSIGN(ExternalExtensionProviderImpl); |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_PROVIDER_IMPL_H_ | 114 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_PROVIDER_IMPL_H_ |
| OLD | NEW |