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

Unified Diff: components/safe_browsing_db/v4_update_protocol_manager.h

Issue 2356443002: Set client_id and client_version in requests sent to SafeBrowsing (Closed)
Patch Set: Make GetBase64SerializedUpdateRequestProto non static Created 4 years, 3 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_db/v4_update_protocol_manager.h
diff --git a/components/safe_browsing_db/v4_update_protocol_manager.h b/components/safe_browsing_db/v4_update_protocol_manager.h
index a8c1624b82dfdf3fd0ba6e029f7d9fa13f01b416..7da1667c66f5012bd8949e5bfe8d1bc25e88323e 100644
--- a/components/safe_browsing_db/v4_update_protocol_manager.h
+++ b/components/safe_browsing_db/v4_update_protocol_manager.h
@@ -89,6 +89,10 @@ class V4UpdateProtocolManager : public net::URLFetcherDelegate,
TestBase64EncodingUsesUrlEncoding);
friend class V4UpdateProtocolManagerFactoryImpl;
+ // Fills a FetchThreatListUpdatesRequest protocol buffer for a request.
+ // Returns the serialized and base64 URL encoded request as a string.
+ std::string GetBase64SerializedUpdateRequestProto();
+
// The method to populate |gurl| with the URL to be sent to the server.
// |request_base64| is the base64 encoded form of an instance of the protobuf
// FetchThreatListUpdatesRequest. Also sets the appropriate header values for
@@ -97,11 +101,6 @@ class V4UpdateProtocolManager : public net::URLFetcherDelegate,
GURL* gurl,
net::HttpRequestHeaders* headers) const;
- // Fills a FetchThreatListUpdatesRequest protocol buffer for a request.
- // Returns the serialized and base64 URL encoded request as a string.
- static std::string GetBase64SerializedUpdateRequestProto(
- const StoreStateMap& store_state_map);
-
// Parses the base64 encoded response received from the server as a
// FetchThreatListUpdatesResponse protobuf and returns each of the
// ListUpdateResponse protobufs contained in it as a vector.
« no previous file with comments | « components/safe_browsing_db/v4_protocol_manager_util.cc ('k') | components/safe_browsing_db/v4_update_protocol_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698