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 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_UMA_POLICY_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_UMA_POLICY_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_UMA_POLICY_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_UMA_POLICY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 CREATED_SCRIPT, | 41 CREATED_SCRIPT, |
42 CREATED_IFRAME, | 42 CREATED_IFRAME, |
43 CREATED_DIV, | 43 CREATED_DIV, |
44 CREATED_LINK, | 44 CREATED_LINK, |
45 CREATED_INPUT, | 45 CREATED_INPUT, |
46 CREATED_EMBED, | 46 CREATED_EMBED, |
47 CREATED_OBJECT, | 47 CREATED_OBJECT, |
48 AD_INJECTED, | 48 AD_INJECTED, |
49 AD_REMOVED, | 49 AD_REMOVED, |
50 AD_REPLACED, | 50 AD_REPLACED, |
| 51 AD_LIKELY_INJECTED, |
| 52 AD_LIKELY_REPLACED, |
51 MAX_STATUS // Insert new page statuses right before this one. | 53 MAX_STATUS // Insert new page statuses right before this one. |
52 }; | 54 }; |
53 | 55 |
54 explicit UmaPolicy(Profile* profile); | 56 explicit UmaPolicy(Profile* profile); |
55 | 57 |
56 // ActivityLogPolicy implementation. | 58 // ActivityLogPolicy implementation. |
57 virtual void ProcessAction(scoped_refptr<Action> action) OVERRIDE; | 59 virtual void ProcessAction(scoped_refptr<Action> action) OVERRIDE; |
58 virtual void Close() OVERRIDE; | 60 virtual void Close() OVERRIDE; |
59 | 61 |
60 // Gets the histogram name associated with each PageStatus. | 62 // Gets the histogram name associated with each PageStatus. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 121 |
120 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, CleanURLTest); | 122 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, CleanURLTest); |
121 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, MatchActionToStatusTest); | 123 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, MatchActionToStatusTest); |
122 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, ProcessActionTest); | 124 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, ProcessActionTest); |
123 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, SiteUrlTest); | 125 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, SiteUrlTest); |
124 }; | 126 }; |
125 | 127 |
126 } // namespace extensions | 128 } // namespace extensions |
127 | 129 |
128 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_UMA_POLICY_H_ | 130 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_UMA_POLICY_H_ |
OLD | NEW |