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_REPLACED, |
51 MAX_STATUS // Insert new page statuses right before this one. | 52 MAX_STATUS // Insert new page statuses right before this one. |
52 }; | 53 }; |
53 | 54 |
54 explicit UmaPolicy(Profile* profile); | 55 explicit UmaPolicy(Profile* profile); |
55 | 56 |
56 // ActivityLogPolicy implementation. | 57 // ActivityLogPolicy implementation. |
57 virtual void ProcessAction(scoped_refptr<Action> action) OVERRIDE; | 58 virtual void ProcessAction(scoped_refptr<Action> action) OVERRIDE; |
58 virtual void Close() OVERRIDE; | 59 virtual void Close() OVERRIDE; |
59 | 60 |
60 // Gets the histogram name associated with each PageStatus. | 61 // Gets the histogram name associated with each PageStatus. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 118 |
118 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, CleanURLTest); | 119 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, CleanURLTest); |
119 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, MatchActionToStatusTest); | 120 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, MatchActionToStatusTest); |
120 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, ProcessActionTest); | 121 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, ProcessActionTest); |
121 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, SiteUrlTest); | 122 FRIEND_TEST_ALL_PREFIXES(UmaPolicyTest, SiteUrlTest); |
122 }; | 123 }; |
123 | 124 |
124 } // namespace extensions | 125 } // namespace extensions |
125 | 126 |
126 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_UMA_POLICY_H_ | 127 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_UMA_POLICY_H_ |
OLD | NEW |