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

Side by Side Diff: components/safe_browsing/password_protection/password_protection_request.h

Issue 2856033002: Add finch control of user population in low reputation requests (Closed)
Patch Set: rebase Created 3 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_REQUEST _H_ 5 #ifndef COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_REQUEST _H_
6 #define COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_REQUEST _H_ 6 #define COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_REQUEST _H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/task/cancelable_task_tracker.h" 10 #include "base/task/cancelable_task_tracker.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 public: 42 public:
43 // The outcome of the request. These values are used for UMA. 43 // The outcome of the request. These values are used for UMA.
44 // DO NOT CHANGE THE ORDERING OF THESE VALUES. 44 // DO NOT CHANGE THE ORDERING OF THESE VALUES.
45 enum RequestOutcome { 45 enum RequestOutcome {
46 UNKNOWN = 0, 46 UNKNOWN = 0,
47 SUCCEEDED = 1, 47 SUCCEEDED = 1,
48 CANCELED = 2, 48 CANCELED = 2,
49 TIMEDOUT = 3, 49 TIMEDOUT = 3,
50 MATCHED_WHITELIST = 4, 50 MATCHED_WHITELIST = 4,
51 RESPONSE_ALREADY_CACHED = 5, 51 RESPONSE_ALREADY_CACHED = 5,
52 NO_EXTENDED_REPORTING = 6, 52 DEPRECATED_NO_EXTENDED_REPORTING = 6,
53 INCOGNITO = 7, 53 DEPRECATED_INCOGNITO = 7,
54 REQUEST_MALFORMED = 8, 54 REQUEST_MALFORMED = 8,
55 FETCH_FAILED = 9, 55 FETCH_FAILED = 9,
56 RESPONSE_MALFORMED = 10, 56 RESPONSE_MALFORMED = 10,
57 SERVICE_DESTROYED = 11, 57 SERVICE_DESTROYED = 11,
58 MAX_OUTCOME 58 MAX_OUTCOME
59 }; 59 };
60 60
61 PasswordProtectionRequest(const GURL& main_frame_url, 61 PasswordProtectionRequest(const GURL& main_frame_url,
62 const GURL& password_form_action, 62 const GURL& password_form_action,
63 const GURL& password_form_frame_url, 63 const GURL& password_form_frame_url,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // Needed for canceling tasks posted to different threads. 153 // Needed for canceling tasks posted to different threads.
154 base::CancelableTaskTracker tracker_; 154 base::CancelableTaskTracker tracker_;
155 155
156 base::WeakPtrFactory<PasswordProtectionRequest> weakptr_factory_; 156 base::WeakPtrFactory<PasswordProtectionRequest> weakptr_factory_;
157 DISALLOW_COPY_AND_ASSIGN(PasswordProtectionRequest); 157 DISALLOW_COPY_AND_ASSIGN(PasswordProtectionRequest);
158 }; 158 };
159 159
160 } // namespace safe_browsing 160 } // namespace safe_browsing
161 161
162 #endif // COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_REQU EST_H_ 162 #endif // COMPONENTS_SAFE_BROWSING_PASSWORD_PROTECTION_PASSWORD_PROTECTION_REQU EST_H_
OLDNEW
« no previous file with comments | « components/safe_browsing/csd.proto ('k') | components/safe_browsing/password_protection/password_protection_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698