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

Side by Side Diff: content/browser/download/base_file.cc

Issue 2124373002: [PPAPI] Quarantine files that are writeable by a Pepper plugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@consolidate-file-metadata
Patch Set: Address comments. Created 4 years 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/download/quarantine.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/download/base_file.h" 5 #include "content/browser/download/base_file.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file.h" 10 #include "base/files/file.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/format_macros.h" 12 #include "base/format_macros.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/pickle.h" 14 #include "base/pickle.h"
15 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
16 #include "base/threading/thread_restrictions.h" 16 #include "base/threading/thread_restrictions.h"
17 #include "build/build_config.h" 17 #include "build/build_config.h"
18 #include "content/browser/download/download_interrupt_reasons_impl.h" 18 #include "content/browser/download/download_interrupt_reasons_impl.h"
19 #include "content/browser/download/download_net_log_parameters.h" 19 #include "content/browser/download/download_net_log_parameters.h"
20 #include "content/browser/download/download_stats.h" 20 #include "content/browser/download/download_stats.h"
21 #include "content/browser/download/quarantine.h"
22 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
23 #include "content/public/browser/content_browser_client.h" 22 #include "content/public/browser/content_browser_client.h"
23 #include "content/public/common/quarantine.h"
24 #include "crypto/secure_hash.h" 24 #include "crypto/secure_hash.h"
25 #include "net/base/net_errors.h" 25 #include "net/base/net_errors.h"
26 #include "net/log/net_log.h" 26 #include "net/log/net_log.h"
27 #include "net/log/net_log_event_type.h" 27 #include "net/log/net_log_event_type.h"
28 28
29 namespace content { 29 namespace content {
30 30
31 BaseFile::BaseFile(const net::NetLogWithSource& net_log) : net_log_(net_log) {} 31 BaseFile::BaseFile(const net::NetLogWithSource& net_log) : net_log_(net_log) {}
32 32
33 BaseFile::~BaseFile() { 33 BaseFile::~BaseFile() {
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 #else // !OS_WIN && !OS_MACOSX && !OS_LINUX 459 #else // !OS_WIN && !OS_MACOSX && !OS_LINUX
460 DownloadInterruptReason BaseFile::AnnotateWithSourceInformation( 460 DownloadInterruptReason BaseFile::AnnotateWithSourceInformation(
461 const std::string& client_guid, 461 const std::string& client_guid,
462 const GURL& source_url, 462 const GURL& source_url,
463 const GURL& referrer_url) { 463 const GURL& referrer_url) {
464 return DOWNLOAD_INTERRUPT_REASON_NONE; 464 return DOWNLOAD_INTERRUPT_REASON_NONE;
465 } 465 }
466 #endif 466 #endif
467 467
468 } // namespace content 468 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/download/quarantine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698