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

Unified Diff: content/browser/download/download_item_impl.h

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Some oups.... :-) Created 3 years, 6 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
« no previous file with comments | « components/policy/resources/policy_templates.json ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_item_impl.h
diff --git a/content/browser/download/download_item_impl.h b/content/browser/download/download_item_impl.h
index 26fbf94317eb4adf833112973156ef7ce5c8400b..b6d22148a3f8a581a1684b61f5cb630b2ddf9980 100644
--- a/content/browser/download/download_item_impl.h
+++ b/content/browser/download/download_item_impl.h
@@ -9,6 +9,7 @@
#include <memory>
#include <string>
+#include <vector>
#include "base/callback_forward.h"
#include "base/files/file_path.h"
@@ -61,8 +62,8 @@ class CONTENT_EXPORT DownloadItemImpl
const std::string& remote_address,
base::Time start_time);
RequestInfo();
- RequestInfo(const RequestInfo& other);
- RequestInfo(const GURL& url);
+ explicit RequestInfo(const RequestInfo& other);
+ explicit RequestInfo(const GURL& url);
~RequestInfo();
// The chain of redirects that leading up to and including the final URL.
@@ -111,8 +112,8 @@ class CONTENT_EXPORT DownloadItemImpl
const std::string& hash,
base::Time end_time);
DestinationInfo();
- DestinationInfo(TargetDisposition target_disposition);
- DestinationInfo(const DestinationInfo& other);
+ explicit DestinationInfo(TargetDisposition target_disposition);
+ explicit DestinationInfo(const DestinationInfo& other);
~DestinationInfo();
// Whether the target should be overwritten, uniquified or prompted for.
@@ -278,7 +279,8 @@ class CONTENT_EXPORT DownloadItemImpl
bool IsTransient() const override;
BrowserContext* GetBrowserContext() const override;
WebContents* GetWebContents() const override;
- void OnContentCheckCompleted(DownloadDangerType danger_type) override;
+ void OnContentCheckCompleted(DownloadDangerType danger_type,
+ DownloadInterruptReason reason) override;
void SetOpenWhenComplete(bool open) override;
void SetOpened(bool opened) override;
void SetLastAccessTime(base::Time last_access_time) override;
« no previous file with comments | « components/policy/resources/policy_templates.json ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698