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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 virtual bool GetExtensionDetails( | 60 virtual bool GetExtensionDetails( |
61 const std::string& id, | 61 const std::string& id, |
62 Manifest::Location* location, | 62 Manifest::Location* location, |
63 scoped_ptr<base::Version>* version) const OVERRIDE; | 63 scoped_ptr<base::Version>* version) const OVERRIDE; |
64 | 64 |
65 virtual bool IsReady() const OVERRIDE; | 65 virtual bool IsReady() const OVERRIDE; |
66 | 66 |
67 static const char kExternalCrx[]; | 67 static const char kExternalCrx[]; |
68 static const char kExternalVersion[]; | 68 static const char kExternalVersion[]; |
69 static const char kExternalUpdateUrl[]; | 69 static const char kExternalUpdateUrl[]; |
70 static const char kSupportedLocales[]; | 70 static const char kInstallParam[]; |
71 static const char kIsBookmarkApp[]; | 71 static const char kIsBookmarkApp[]; |
72 static const char kIsFromWebstore[]; | 72 static const char kIsFromWebstore[]; |
73 static const char kKeepIfPresent[]; | 73 static const char kKeepIfPresent[]; |
| 74 static const char kSupportedLocales[]; |
74 | 75 |
75 void set_auto_acknowledge(bool auto_acknowledge) { | 76 void set_auto_acknowledge(bool auto_acknowledge) { |
76 auto_acknowledge_ = auto_acknowledge; | 77 auto_acknowledge_ = auto_acknowledge; |
77 } | 78 } |
78 | 79 |
79 private: | 80 private: |
80 // Location for external extensions that are provided by this provider from | 81 // Location for external extensions that are provided by this provider from |
81 // local crx files. | 82 // local crx files. |
82 const Manifest::Location crx_location_; | 83 const Manifest::Location crx_location_; |
83 | 84 |
(...skipping 26 matching lines...) Expand all Loading... |
110 // Whether loaded extensions should be automatically acknowledged, so that | 111 // Whether loaded extensions should be automatically acknowledged, so that |
111 // the user doesn't see an alert about them. | 112 // the user doesn't see an alert about them. |
112 bool auto_acknowledge_; | 113 bool auto_acknowledge_; |
113 | 114 |
114 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl); | 115 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl); |
115 }; | 116 }; |
116 | 117 |
117 } // namespace extensions | 118 } // namespace extensions |
118 | 119 |
119 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ | 120 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ |
OLD | NEW |