OLD | NEW |
(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 } |
OLD | NEW |