| 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_EXTENSION_SPECIAL_STORAGE_POLICY_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SPECIAL_STORAGE_POLICY_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SPECIAL_STORAGE_POLICY_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SPECIAL_STORAGE_POLICY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void Remove(const Extension* extension); | 48 void Remove(const Extension* extension); |
| 49 void Clear(); | 49 void Clear(); |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 typedef std::map<GURL, bool> CachedResults; | 52 typedef std::map<GURL, bool> CachedResults; |
| 53 typedef std::map<std::string, scoped_refptr<const Extension> > Extensions; | 53 typedef std::map<std::string, scoped_refptr<const Extension> > Extensions; |
| 54 Extensions extensions_; | 54 Extensions extensions_; |
| 55 CachedResults cached_results_; | 55 CachedResults cached_results_; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 void NotifyChanged(); |
| 59 |
| 58 base::Lock lock_; // Synchronize all access to the collections. | 60 base::Lock lock_; // Synchronize all access to the collections. |
| 59 SpecialCollection protected_apps_; | 61 SpecialCollection protected_apps_; |
| 60 SpecialCollection unlimited_extensions_; | 62 SpecialCollection unlimited_extensions_; |
| 61 SpecialCollection file_handler_extensions_; | 63 SpecialCollection file_handler_extensions_; |
| 62 }; | 64 }; |
| 63 | 65 |
| 64 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SPECIAL_STORAGE_POLICY_H_ | 66 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SPECIAL_STORAGE_POLICY_H_ |
| OLD | NEW |