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

Unified Diff: chrome/browser/download/download_hidden.h

Issue 10260018: Test downloads.download() disallows unsafe headers (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: DownloadHidden Created 8 years, 5 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 | « no previous file | chrome/browser/download/download_hidden.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_hidden.h
diff --git a/chrome/browser/download/download_hidden.h b/chrome/browser/download/download_hidden.h
new file mode 100644
index 0000000000000000000000000000000000000000..4f2e14a4389d62c435a98a899e0f7e499744eccc
--- /dev/null
+++ b/chrome/browser/download/download_hidden.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_HIDDEN_H_
+#define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_HIDDEN_H_
+
+#include "content/public/browser/download_item.h"
+
+// Clients may add a DownloadHidden to a DownloadItem in order to prevent the UI
+// from displaying this DownloadItem.
+class DownloadHidden : public content::DownloadItem::ExternalData {
+ public:
+ static bool Get(content::DownloadItem* download_item);
+
+ explicit DownloadHidden(content::DownloadItem* download_item);
+ virtual ~DownloadHidden();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DownloadHidden);
+};
+
+#endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_HIDDEN_H_
« no previous file with comments | « no previous file | chrome/browser/download/download_hidden.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698