blob: 721cd60269432dea77def58ea658c356c25609ec [file] [log] [blame]
// 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.
#include "content/browser/download/base_file.h"
#include "content/browser/download/file_metadata_linux.h"
#include "content/public/browser/browser_thread.h"
namespace content {
DownloadInterruptReason BaseFile::AnnotateWithSourceInformation() {
DCHECK_CURRENTLY_ON(BrowserThread::FILE);
DCHECK(!detached_);
AddOriginMetadataToFile(full_path_, source_url_, referrer_url_);
return DOWNLOAD_INTERRUPT_REASON_NONE;
}
} // namespace content