| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 EXTENSIONS_BROWSER_INFO_MAP_H_ | 5 #ifndef EXTENSIONS_BROWSER_INFO_MAP_H_ |
| 6 #define EXTENSIONS_BROWSER_INFO_MAP_H_ | 6 #define EXTENSIONS_BROWSER_INFO_MAP_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "extensions/browser/process_map.h" | 13 #include "extensions/browser/process_map.h" |
| 14 #include "extensions/browser/quota_service.h" | 14 #include "extensions/browser/quota_service.h" |
| 15 #include "extensions/common/extension_set.h" | 15 #include "extensions/common/extension_set.h" |
| 16 #include "extensions/common/permissions/api_permission.h" | 16 #include "extensions/common/permissions/api_permission.h" |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class FilePath; | 19 class FilePath; |
| 20 } | 20 } |
| 21 | 21 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 ExtensionSet extensions_; | 108 ExtensionSet extensions_; |
| 109 ExtensionSet disabled_extensions_; | 109 ExtensionSet disabled_extensions_; |
| 110 | 110 |
| 111 // Extra data associated with enabled extensions. | 111 // Extra data associated with enabled extensions. |
| 112 ExtraDataMap extra_data_; | 112 ExtraDataMap extra_data_; |
| 113 | 113 |
| 114 // Used by dispatchers to limit API quota for individual extensions. | 114 // Used by dispatchers to limit API quota for individual extensions. |
| 115 // The QuotaService is not thread safe. We need to create and destroy it on | 115 // The QuotaService is not thread safe. We need to create and destroy it on |
| 116 // the IO thread. | 116 // the IO thread. |
| 117 scoped_ptr<QuotaService> quota_service_; | 117 std::unique_ptr<QuotaService> quota_service_; |
| 118 | 118 |
| 119 // Assignment of extensions to renderer processes. | 119 // Assignment of extensions to renderer processes. |
| 120 extensions::ProcessMap process_map_; | 120 extensions::ProcessMap process_map_; |
| 121 | 121 |
| 122 scoped_refptr<ContentVerifier> content_verifier_; | 122 scoped_refptr<ContentVerifier> content_verifier_; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace extensions | 125 } // namespace extensions |
| 126 | 126 |
| 127 #endif // EXTENSIONS_BROWSER_INFO_MAP_H_ | 127 #endif // EXTENSIONS_BROWSER_INFO_MAP_H_ |
| OLD | NEW |