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

Unified Diff: components/safe_browsing/password_protection/password_protection_request.h

Issue 2783773002: Link PasswordProtectionService to Profile and SB Service (Closed)
Patch Set: refine histogram description Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/safe_browsing/password_protection/password_protection_request.h
diff --git a/components/safe_browsing/password_protection/password_protection_request.h b/components/safe_browsing/password_protection/password_protection_request.h
index 7e206d5307dece0b0b8b6cb7ce431c0d2a98ced8..52be0c11eb444afd7f49c03d47cda3df0ca10d26 100644
--- a/components/safe_browsing/password_protection/password_protection_request.h
+++ b/components/safe_browsing/password_protection/password_protection_request.h
@@ -77,6 +77,9 @@ class PasswordProtectionRequest : public net::URLFetcherDelegate {
// otherwise call Finish().
void CheckCachedVerdicts();
+ // Fill |request_proto_| with appropriate values.
+ void FillRequestProto();
+
// Initiates network request to Safe Browsing backend.
void SendRequest();
@@ -114,6 +117,8 @@ class PasswordProtectionRequest : public net::URLFetcherDelegate {
// request.
const int request_timeout_in_ms_;
+ std::unique_ptr<LoginReputationClientRequest> request_proto_;
+
base::WeakPtrFactory<PasswordProtectionRequest> weakptr_factory_;
DISALLOW_COPY_AND_ASSIGN(PasswordProtectionRequest);
};

Powered by Google App Engine
This is Rietveld 408576698