Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7105)

Unified Diff: chrome/common/extensions/event_matcher.cc

Issue 12208078: Move chrome/common/extensions/event_* to extensions/common/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: v8 Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/event_matcher.h ('k') | chrome/renderer/extensions/dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/event_matcher.cc
diff --git a/chrome/common/extensions/event_matcher.cc b/chrome/common/extensions/event_matcher.cc
deleted file mode 100644
index 8a64f787fea5b92699273414a5612821924c074d..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/event_matcher.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/common/extensions/event_matcher.h"
-#include "chrome/common/extensions/event_filtering_info.h"
-
-namespace {
-const char kUrlFiltersKey[] = "url";
-}
-
-namespace extensions {
-
-EventMatcher::EventMatcher(scoped_ptr<base::DictionaryValue> filter)
- : filter_(filter.Pass()) {
-}
-
-EventMatcher::~EventMatcher() {
-}
-
-bool EventMatcher::MatchNonURLCriteria(
- const EventFilteringInfo& event_info) const {
- // There is currently no criteria apart from URL criteria.
- return true;
-}
-
-int EventMatcher::GetURLFilterCount() const {
- base::ListValue* url_filters = NULL;
- if (filter_->GetList(kUrlFiltersKey, &url_filters))
- return url_filters->GetSize();
- return 0;
-}
-
-bool EventMatcher::GetURLFilter(int i, base::DictionaryValue** url_filter_out) {
- base::ListValue* url_filters = NULL;
- if (filter_->GetList(kUrlFiltersKey, &url_filters)) {
- return url_filters->GetDictionary(i, url_filter_out);
- }
- return false;
-}
-
-int EventMatcher::HasURLFilters() const {
- return GetURLFilterCount() != 0;
-}
-
-} // namespace extensions
« no previous file with comments | « chrome/common/extensions/event_matcher.h ('k') | chrome/renderer/extensions/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698