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

Side by Side Diff: chrome/browser/download/download_hidden.cc

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/download/download_hidden.h"
6
7 namespace {
8 static const char kKey[] = "DownloadItem DownloadHidden";
9 }
10
11 bool DownloadHidden::Get(content::DownloadItem* download_item) {
12 return download_item->GetExternalData(kKey) != NULL;
13 }
14
15 DownloadHidden::DownloadHidden(content::DownloadItem* download_item) {
16 download_item->SetExternalData(kKey, this);
17 }
18
19 DownloadHidden::~DownloadHidden() {
20 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_hidden.h ('k') | chrome/browser/ui/webui/downloads_dom_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698