| 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 "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 #include "extensions/browser/content_verifier.h" | 9 #include "extensions/browser/content_verifier.h" |
| 10 #include "extensions/common/constants.h" | 10 #include "extensions/common/constants.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 ExtraData(); | 39 ExtraData(); |
| 40 ~ExtraData(); | 40 ~ExtraData(); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 InfoMap::ExtraData::ExtraData() | 43 InfoMap::ExtraData::ExtraData() |
| 44 : incognito_enabled(false), notifications_disabled(false) { | 44 : incognito_enabled(false), notifications_disabled(false) { |
| 45 } | 45 } |
| 46 | 46 |
| 47 InfoMap::ExtraData::~ExtraData() {} | 47 InfoMap::ExtraData::~ExtraData() {} |
| 48 | 48 |
| 49 InfoMap::InfoMap() { | 49 InfoMap::InfoMap() : ruleset_manager_(this) {} |
| 50 } | |
| 51 | 50 |
| 52 const ExtensionSet& InfoMap::extensions() const { | 51 const ExtensionSet& InfoMap::extensions() const { |
| 53 CheckOnValidThread(); | 52 CheckOnValidThread(); |
| 54 return extensions_; | 53 return extensions_; |
| 55 } | 54 } |
| 56 | 55 |
| 57 const ExtensionSet& InfoMap::disabled_extensions() const { | 56 const ExtensionSet& InfoMap::disabled_extensions() const { |
| 58 CheckOnValidThread(); | 57 CheckOnValidThread(); |
| 59 return disabled_extensions_; | 58 return disabled_extensions_; |
| 60 } | 59 } |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 } | 224 } |
| 226 | 225 |
| 227 InfoMap::~InfoMap() { | 226 InfoMap::~InfoMap() { |
| 228 if (quota_service_) { | 227 if (quota_service_) { |
| 229 BrowserThread::DeleteSoon( | 228 BrowserThread::DeleteSoon( |
| 230 BrowserThread::IO, FROM_HERE, quota_service_.release()); | 229 BrowserThread::IO, FROM_HERE, quota_service_.release()); |
| 231 } | 230 } |
| 232 } | 231 } |
| 233 | 232 |
| 234 } // namespace extensions | 233 } // namespace extensions |
| OLD | NEW |