Index: content/browser/download/base_file.h |
diff --git a/content/browser/download/base_file.h b/content/browser/download/base_file.h |
index 9c1261ca25154377fdbb8621100ab1be1dc314d4..f1686c81fb05fd72e61e1eae45014ac65ce6115f 100644 |
--- a/content/browser/download/base_file.h |
+++ b/content/browser/download/base_file.h |
@@ -69,8 +69,15 @@ class CONTENT_EXPORT BaseFile { |
// Indicate that the download has finished. No new data will be received. |
void Finish(); |
+ // Set the client guid which will be used to identify the app to the |
+ // system AV scanning function. Should be called before |
+ // AnnotateWithSourceInformation() to take effect. |
+ void SetClientGuid(const std::string& guid); |
+ |
// Informs the OS that this file came from the internet. Returns a |
// DownloadInterruptReason indicating the result of the operation. |
+ // Note: SetClientGuid() should be called before this function on |
+ // Windows to ensure the correct app client ID is available. |
DownloadInterruptReason AnnotateWithSourceInformation(); |
base::FilePath full_path() const { return full_path_; } |
@@ -142,6 +149,8 @@ class CONTENT_EXPORT BaseFile { |
// The URL where the download was initiated. |
GURL referrer_url_; |
+ std::string client_guid_; |
+ |
// OS file stream for writing |
scoped_ptr<net::FileStream> file_stream_; |