OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/api/declarative/rules_registry.h" | 5 #include "extensions/browser/api/declarative/rules_registry.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram_macros.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/browser/notification_details.h" | 19 #include "content/public/browser/notification_details.h" |
20 #include "content/public/browser/notification_source.h" | 20 #include "content/public/browser/notification_source.h" |
21 #include "extensions/browser/api/declarative/rules_cache_delegate.h" | 21 #include "extensions/browser/api/declarative/rules_cache_delegate.h" |
22 #include "extensions/browser/extension_error.h" | 22 #include "extensions/browser/extension_error.h" |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 for (i = identifiers.begin(); i != identifiers.end(); ++i) | 427 for (i = identifiers.begin(); i != identifiers.end(); ++i) |
428 used_rule_identifiers_[extension_id].erase(*i); | 428 used_rule_identifiers_[extension_id].erase(*i); |
429 } | 429 } |
430 | 430 |
431 void RulesRegistry::RemoveAllUsedRuleIdentifiers( | 431 void RulesRegistry::RemoveAllUsedRuleIdentifiers( |
432 const std::string& extension_id) { | 432 const std::string& extension_id) { |
433 used_rule_identifiers_.erase(extension_id); | 433 used_rule_identifiers_.erase(extension_id); |
434 } | 434 } |
435 | 435 |
436 } // namespace extensions | 436 } // namespace extensions |
OLD | NEW |