OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_STATEFUL_EXTERNAL_EXTENSION_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_STATEFUL_EXTERNAL_EXTENSION_PROVIDER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_STATEFUL_EXTERNAL_EXTENSION_PROVIDER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_STATEFUL_EXTERNAL_EXTENSION_PROVIDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/extensions/external_extension_provider.h" | 9 #include "chrome/browser/extensions/external_extension_provider.h" |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 virtual bool GetExtensionDetails(const std::string& id, | 39 virtual bool GetExtensionDetails(const std::string& id, |
40 Extension::Location* location, | 40 Extension::Location* location, |
41 scoped_ptr<Version>* version) const; | 41 scoped_ptr<Version>* version) const; |
42 protected: | 42 protected: |
43 // Location for external extensions that are provided by this provider from | 43 // Location for external extensions that are provided by this provider from |
44 // local crx files. | 44 // local crx files. |
45 const Extension::Location crx_location_; | 45 const Extension::Location crx_location_; |
46 // Location for external extensions that are provided by this provider from | 46 // Location for external extensions that are provided by this provider from |
47 // update URLs. | 47 // update URLs. |
48 const Extension::Location download_location_; | 48 const Extension::Location download_location_; |
| 49 |
| 50 // Stores the dictionary of external extensions internally. Takes ownership |
| 51 // of |prefs|. |
| 52 void set_prefs(DictionaryValue* prefs); |
| 53 |
| 54 private: |
49 // Dictionary of the external extensions that are provided by this provider. | 55 // Dictionary of the external extensions that are provided by this provider. |
50 scoped_ptr<DictionaryValue> prefs_; | 56 scoped_ptr<DictionaryValue> prefs_; |
51 }; | 57 }; |
52 | 58 |
53 #endif // CHROME_BROWSER_EXTENSIONS_STATEFUL_EXTERNAL_EXTENSION_PROVIDER_H_ | 59 #endif // CHROME_BROWSER_EXTENSIONS_STATEFUL_EXTERNAL_EXTENSION_PROVIDER_H_ |
OLD | NEW |