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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 static const char kIsFromWebstore[]; | 71 static const char kIsFromWebstore[]; |
72 static const char kKeepIfPresent[]; | 72 static const char kKeepIfPresent[]; |
73 static const char kSupportedLocales[]; | 73 static const char kSupportedLocales[]; |
74 static const char kWasInstalledByOem[]; | 74 static const char kWasInstalledByOem[]; |
75 static const char kMayBeUntrusted[]; | 75 static const char kMayBeUntrusted[]; |
76 | 76 |
77 void set_auto_acknowledge(bool auto_acknowledge) { | 77 void set_auto_acknowledge(bool auto_acknowledge) { |
78 auto_acknowledge_ = auto_acknowledge; | 78 auto_acknowledge_ = auto_acknowledge; |
79 } | 79 } |
80 | 80 |
| 81 void set_install_immediately(bool install_immediately) { |
| 82 install_immediately_ = install_immediately; |
| 83 } |
| 84 |
81 private: | 85 private: |
82 // Location for external extensions that are provided by this provider from | 86 // Location for external extensions that are provided by this provider from |
83 // local crx files. | 87 // local crx files. |
84 const Manifest::Location crx_location_; | 88 const Manifest::Location crx_location_; |
85 | 89 |
86 // Location for external extensions that are provided by this provider from | 90 // Location for external extensions that are provided by this provider from |
87 // update URLs. | 91 // update URLs. |
88 const Manifest::Location download_location_; | 92 const Manifest::Location download_location_; |
89 | 93 |
90 // Weak pointer to the object that consumes the external extensions. | 94 // Weak pointer to the object that consumes the external extensions. |
(...skipping 15 matching lines...) Expand all Loading... |
106 Profile* profile_; | 110 Profile* profile_; |
107 | 111 |
108 // Creation flags to use for the extension. These flags will be used | 112 // Creation flags to use for the extension. These flags will be used |
109 // when calling Extension::Create() by the crx installer. | 113 // when calling Extension::Create() by the crx installer. |
110 int creation_flags_; | 114 int creation_flags_; |
111 | 115 |
112 // Whether loaded extensions should be automatically acknowledged, so that | 116 // Whether loaded extensions should be automatically acknowledged, so that |
113 // the user doesn't see an alert about them. | 117 // the user doesn't see an alert about them. |
114 bool auto_acknowledge_; | 118 bool auto_acknowledge_; |
115 | 119 |
| 120 // Whether the extensions from this provider should be installed immediately. |
| 121 bool install_immediately_; |
| 122 |
116 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl); | 123 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl); |
117 }; | 124 }; |
118 | 125 |
119 } // namespace extensions | 126 } // namespace extensions |
120 | 127 |
121 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ | 128 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ |
OLD | NEW |