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 #ifndef CHROME_COMMON_EXTENSIONS_EVENT_MATCHER_H_ | 5 #ifndef EXTENSIONS_COMMON_EVENT_MATCHER_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EVENT_MATCHER_H_ | 6 #define EXTENSIONS_COMMON_EVENT_MATCHER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 | 10 |
11 namespace extensions { | 11 namespace extensions { |
12 | 12 |
13 class EventFilteringInfo; | 13 class EventFilteringInfo; |
14 | 14 |
15 // Matches EventFilteringInfos against a set of criteria. This is intended to | 15 // Matches EventFilteringInfos against a set of criteria. This is intended to |
16 // be used by EventFilter which performs efficient URL matching across | 16 // be used by EventFilter which performs efficient URL matching across |
(...skipping 23 matching lines...) Expand all Loading... |
40 // {url: [{hostSuffix: 'google.com'}]} | 40 // {url: [{hostSuffix: 'google.com'}]} |
41 // | 41 // |
42 // The valid filter keys are event-specific. | 42 // The valid filter keys are event-specific. |
43 scoped_ptr<base::DictionaryValue> filter_; | 43 scoped_ptr<base::DictionaryValue> filter_; |
44 | 44 |
45 DISALLOW_COPY_AND_ASSIGN(EventMatcher); | 45 DISALLOW_COPY_AND_ASSIGN(EventMatcher); |
46 }; | 46 }; |
47 | 47 |
48 } // namespace extensions | 48 } // namespace extensions |
49 | 49 |
50 #endif // CHROME_COMMON_EXTENSIONS_EVENT_MATCHER_H_ | 50 #endif // EXTENSIONS_COMMON_EVENT_MATCHER_H_ |
OLD | NEW |