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 #include "extensions/browser/info_map.h" | 5 #include "extensions/browser/info_map.h" |
6 | 6 |
7 #include "content/public/browser/browser_thread.h" | 7 #include "content/public/browser/browser_thread.h" |
| 8 #include "extensions/browser/content_verifier.h" |
8 #include "extensions/common/constants.h" | 9 #include "extensions/common/constants.h" |
9 #include "extensions/common/extension.h" | 10 #include "extensions/common/extension.h" |
10 #include "extensions/common/extension_set.h" | 11 #include "extensions/common/extension_set.h" |
11 #include "extensions/common/manifest_handlers/incognito_info.h" | 12 #include "extensions/common/manifest_handlers/incognito_info.h" |
12 | 13 |
13 using content::BrowserThread; | 14 using content::BrowserThread; |
14 | 15 |
15 namespace extensions { | 16 namespace extensions { |
16 | 17 |
17 namespace { | 18 namespace { |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 } | 201 } |
201 | 202 |
202 bool InfoMap::AreNotificationsDisabled( | 203 bool InfoMap::AreNotificationsDisabled( |
203 const std::string& extension_id) const { | 204 const std::string& extension_id) const { |
204 ExtraDataMap::const_iterator iter = extra_data_.find(extension_id); | 205 ExtraDataMap::const_iterator iter = extra_data_.find(extension_id); |
205 if (iter != extra_data_.end()) | 206 if (iter != extra_data_.end()) |
206 return iter->second.notifications_disabled; | 207 return iter->second.notifications_disabled; |
207 return false; | 208 return false; |
208 } | 209 } |
209 | 210 |
| 211 void InfoMap::SetContentVerifier(ContentVerifier* verifier) { |
| 212 content_verifier_ = verifier; |
| 213 } |
| 214 |
210 InfoMap::~InfoMap() { | 215 InfoMap::~InfoMap() { |
211 if (quota_service_) { | 216 if (quota_service_) { |
212 BrowserThread::DeleteSoon( | 217 BrowserThread::DeleteSoon( |
213 BrowserThread::IO, FROM_HERE, quota_service_.release()); | 218 BrowserThread::IO, FROM_HERE, quota_service_.release()); |
214 } | 219 } |
215 } | 220 } |
216 | 221 |
217 } // namespace extensions | 222 } // namespace extensions |
OLD | NEW |