summaryrefslogtreecommitdiff
path: root/chromium/content/browser/download/base_file_linux.cc
blob: 6c62be3230232fcae9c9e1b00f027779bcf78cf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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.

#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(
    const std::string& client_guid,
    const GURL& source_url,
    const GURL& referrer_url) {
  DCHECK_CURRENTLY_ON(BrowserThread::FILE);
  DCHECK(!detached_);

  AddOriginMetadataToFile(full_path_, source_url, referrer_url);
  return DOWNLOAD_INTERRUPT_REASON_NONE;
}

}  // namespace content