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 <set> |
8 #include <string> | 9 #include <string> |
9 | 10 |
10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
11 #include "chrome/browser/extensions/external_loader.h" | 12 #include "chrome/browser/extensions/external_loader.h" |
12 #include "extensions/browser/external_provider_interface.h" | 13 #include "extensions/browser/external_provider_interface.h" |
13 #include "extensions/common/manifest.h" | 14 #include "extensions/common/manifest.h" |
14 | 15 |
15 class Profile; | 16 class Profile; |
16 | 17 |
17 namespace base { | 18 namespace base { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 static const char kExternalCrx[]; | 67 static const char kExternalCrx[]; |
67 static const char kExternalVersion[]; | 68 static const char kExternalVersion[]; |
68 static const char kExternalUpdateUrl[]; | 69 static const char kExternalUpdateUrl[]; |
69 static const char kInstallParam[]; | 70 static const char kInstallParam[]; |
70 static const char kIsBookmarkApp[]; | 71 static const char kIsBookmarkApp[]; |
71 static const char kIsFromWebstore[]; | 72 static const char kIsFromWebstore[]; |
72 static const char kKeepIfPresent[]; | 73 static const char kKeepIfPresent[]; |
73 static const char kSupportedLocales[]; | 74 static const char kSupportedLocales[]; |
74 static const char kWasInstalledByOem[]; | 75 static const char kWasInstalledByOem[]; |
75 static const char kMayBeUntrusted[]; | 76 static const char kMayBeUntrusted[]; |
| 77 static const char kMinProfileCreatedByVersion[]; |
76 | 78 |
77 void set_auto_acknowledge(bool auto_acknowledge) { | 79 void set_auto_acknowledge(bool auto_acknowledge) { |
78 auto_acknowledge_ = auto_acknowledge; | 80 auto_acknowledge_ = auto_acknowledge; |
79 } | 81 } |
80 | 82 |
81 void set_install_immediately(bool install_immediately) { | 83 void set_install_immediately(bool install_immediately) { |
82 install_immediately_ = install_immediately; | 84 install_immediately_ = install_immediately; |
83 } | 85 } |
84 | 86 |
85 private: | 87 private: |
| 88 bool HandleMinProfileVersion(const base::DictionaryValue* extension, |
| 89 const std::string& extension_id, |
| 90 std::set<std::string>* unsupported_extensions); |
| 91 |
86 // Location for external extensions that are provided by this provider from | 92 // Location for external extensions that are provided by this provider from |
87 // local crx files. | 93 // local crx files. |
88 const Manifest::Location crx_location_; | 94 const Manifest::Location crx_location_; |
89 | 95 |
90 // Location for external extensions that are provided by this provider from | 96 // Location for external extensions that are provided by this provider from |
91 // update URLs. | 97 // update URLs. |
92 const Manifest::Location download_location_; | 98 const Manifest::Location download_location_; |
93 | 99 |
94 // Weak pointer to the object that consumes the external extensions. | 100 // Weak pointer to the object that consumes the external extensions. |
95 // This is zeroed out by: ServiceShutdown() | 101 // This is zeroed out by: ServiceShutdown() |
(...skipping 23 matching lines...) Expand all Loading... |
119 | 125 |
120 // Whether the extensions from this provider should be installed immediately. | 126 // Whether the extensions from this provider should be installed immediately. |
121 bool install_immediately_; | 127 bool install_immediately_; |
122 | 128 |
123 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl); | 129 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl); |
124 }; | 130 }; |
125 | 131 |
126 } // namespace extensions | 132 } // namespace extensions |
127 | 133 |
128 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ | 134 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ |
OLD | NEW |