forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move file quarantine implementation to components
The implementation is currently in content/ and used by download and pepper. Download code is being moved to components/. This CL moves the quarantine implemetation to components/ so it can be shared between content/ and components/ BUG=803135 Change-Id: Id68afca113891abb8475b6b64f5854be28b0ca3e Reviewed-on: https://chromium-review.googlesource.com/933287 Reviewed-by: Jochen Eisinger <jochen@chromium.org> Reviewed-by: David Trainor <dtrainor@chromium.org> Reviewed-by: John Abd-El-Malek <jam@chromium.org> Commit-Queue: Min Qin <qinmin@chromium.org> Cr-Commit-Position: refs/heads/master@{#539817}
- Loading branch information
Min Qin
authored and
Commit Bot
committed
Feb 28, 2018
1 parent
ab7770e
commit d103f11
Showing
25 changed files
with
146 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Copyright 2018 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. | ||
|
||
import("//build/config/chromecast_build.gni") | ||
|
||
if (is_android) { | ||
import("//build/config/android/rules.gni") | ||
} | ||
|
||
static_library("quarantine") { | ||
sources = [ | ||
"quarantine.cc", | ||
"quarantine.h", | ||
"quarantine_constants_linux.h", | ||
"quarantine_linux.cc", | ||
"quarantine_mac.mm", | ||
"quarantine_win.cc", | ||
] | ||
|
||
deps = [ | ||
"//base", | ||
"//net", | ||
"//url", | ||
] | ||
|
||
if (is_mac) { | ||
libs = [ | ||
"Carbon.framework", | ||
"Foundation.framework", | ||
] | ||
} | ||
} | ||
|
||
source_set("unit_tests") { | ||
testonly = true | ||
sources = [ | ||
"quarantine_linux_unittest.cc", | ||
"quarantine_mac_unittest.mm", | ||
"quarantine_win_unittest.cc", | ||
] | ||
|
||
# Chromecasts do not have extended attributes enabled; even if it were | ||
# enabled, the devices use tmpfs which restricts the extended attributes that | ||
# can be set such that quarantining still would not work. (The platform | ||
# specific tests include a runtime guard to skip tests that need xattr.) | ||
if (!is_chromecast) { | ||
sources += [ "quarantine_unittest.cc" ] | ||
} | ||
|
||
deps = [ | ||
":quarantine", | ||
"//base", | ||
"//base/test:test_support", | ||
"//net", | ||
"//testing/gtest", | ||
"//url", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include_rules = [ | ||
"+net/base/filename_util.h", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.