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

Side by Side Diff: chrome/common/extensions/event_filter.h

Issue 12092096: Move c/c/extensions/matcher/ to top level extension dir (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TOT 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 unified diff | Download patch
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/extensions/event_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_COMMON_EXTENSIONS_EVENT_FILTER_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EVENT_FILTER_H_
6 #define CHROME_COMMON_EXTENSIONS_EVENT_FILTER_H_ 6 #define CHROME_COMMON_EXTENSIONS_EVENT_FILTER_H_
7 7
8 #include "base/memory/linked_ptr.h"
9 #include "chrome/common/extensions/event_matcher.h"
10 #include "chrome/common/extensions/event_filtering_info.h"
11 #include "chrome/common/extensions/matcher/url_matcher.h"
12
13 #include <map> 8 #include <map>
14 #include <set> 9 #include <set>
15 10
11 #include "base/memory/linked_ptr.h"
12 #include "chrome/common/extensions/event_filtering_info.h"
13 #include "chrome/common/extensions/event_matcher.h"
14 #include "extensions/common/matcher/url_matcher.h"
15
16 namespace extensions { 16 namespace extensions {
17 17
18 // Matches incoming events against a collection of EventMatchers. Each added 18 // Matches incoming events against a collection of EventMatchers. Each added
19 // EventMatcher is given an id which is returned by MatchEvent() when it is 19 // EventMatcher is given an id which is returned by MatchEvent() when it is
20 // passed a matching event. 20 // passed a matching event.
21 class EventFilter { 21 class EventFilter {
22 public: 22 public:
23 typedef int MatcherID; 23 typedef int MatcherID;
24 EventFilter(); 24 EventFilter();
25 ~EventFilter(); 25 ~EventFilter();
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 // Maps from event matcher ids to the name of the event they match on. 118 // Maps from event matcher ids to the name of the event they match on.
119 std::map<MatcherID, std::string> id_to_event_name_; 119 std::map<MatcherID, std::string> id_to_event_name_;
120 120
121 DISALLOW_COPY_AND_ASSIGN(EventFilter); 121 DISALLOW_COPY_AND_ASSIGN(EventFilter);
122 }; 122 };
123 123
124 } // namespace extensions 124 } // namespace extensions
125 125
126 #endif // CHROME_COMMON_EXTENSIONS_EVENT_FILTER_H_ 126 #endif // CHROME_COMMON_EXTENSIONS_EVENT_FILTER_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/extensions/event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698