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

Side by Side Diff: chrome/browser/extensions/activity_log/uma_policy.h

Issue 270623005: Update ActivityLog detection to use previous values, hrefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698