| Index: components/safe_browsing_db/safe_browsing_api_handler_util.h
|
| diff --git a/components/safe_browsing_db/safe_browsing_api_handler_util.h b/components/safe_browsing_db/safe_browsing_api_handler_util.h
|
| index 5733c664a51143d028e39afc25da4148522ec32d..0cb5e5792124c45825d91ee6e427029fa6cd61ab 100644
|
| --- a/components/safe_browsing_db/safe_browsing_api_handler_util.h
|
| +++ b/components/safe_browsing_db/safe_browsing_api_handler_util.h
|
| @@ -43,13 +43,15 @@ enum UmaRemoteCallResult {
|
|
|
| // This parses the JSON from the GMSCore API and then:
|
| // 1) Picks the most severe threat type
|
| -// 2) Parses remaining key/value pairs into a MalwarePatternType PB
|
| -// so DisplayBlockingPage() can unmarshal it. We make this string
|
| -// is binary compatible with the Pver3 API's metadata string even
|
| -// though it comes from Pver4.
|
| +// 2) Parses that threat's key/value pairs into the metadata struct.
|
| //
|
| // If anything fails to parse, this sets the threat to "safe". The caller
|
| // should report the return value via UMA.
|
| +UmaRemoteCallResult ParseJsonFromGMSCore(const std::string& metadata_str,
|
| + SBThreatType* worst_threat,
|
| + ThreatMetadata* metadata);
|
| +
|
| +// DEPRECATED. Will be removed.
|
| UmaRemoteCallResult ParseJsonToThreatAndPB(const std::string& metadata_str,
|
| SBThreatType* worst_threat,
|
| std::string* metadata_pb_str);
|
|
|