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

Side by Side Diff: chrome/browser/safe_browsing/test_safe_browsing_service.cc

Issue 2645283007: Add the client for accessing Subresource Filter only list. (Closed)
Patch Set: . Created 3 years, 10 months 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
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 "chrome/browser/safe_browsing/test_safe_browsing_service.h" 5 #include "chrome/browser/safe_browsing/test_safe_browsing_service.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "chrome/browser/safe_browsing/download_protection_service.h" 8 #include "chrome/browser/safe_browsing/download_protection_service.h"
9 #include "chrome/browser/safe_browsing/ping_manager.h" 9 #include "chrome/browser/safe_browsing/ping_manager.h"
10 #include "chrome/browser/safe_browsing/ui_manager.h" 10 #include "chrome/browser/safe_browsing/ui_manager.h"
11 #include "components/safe_browsing_db/database_manager.h" 11 #include "components/safe_browsing_db/database_manager.h"
12 #include "components/safe_browsing_db/test_database_manager.h" 12 #include "components/safe_browsing_db/test_database_manager.h"
13 #include "components/safe_browsing_db/v4_feature_list.h"
14 13
15 namespace safe_browsing { 14 namespace safe_browsing {
16 15
17 // TestSafeBrowsingService functions: 16 // TestSafeBrowsingService functions:
18 TestSafeBrowsingService::TestSafeBrowsingService( 17 TestSafeBrowsingService::TestSafeBrowsingService(
19 V4FeatureList::V4UsageStatus v4_usage_status) 18 V4FeatureList::V4UsageStatus v4_usage_status)
20 : SafeBrowsingService(v4_usage_status), 19 : SafeBrowsingService(v4_usage_status),
21 protocol_manager_delegate_disabled_(false), 20 protocol_manager_delegate_disabled_(false),
22 serialized_download_report_(base::EmptyString()) {} 21 serialized_download_report_(base::EmptyString()) {}
23 22
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 const std::string& serialized) { 153 const std::string& serialized) {
155 details_.push_back(serialized); 154 details_.push_back(serialized);
156 } 155 }
157 156
158 std::list<std::string>* TestSafeBrowsingUIManager::GetThreatDetails() { 157 std::list<std::string>* TestSafeBrowsingUIManager::GetThreatDetails() {
159 return &details_; 158 return &details_;
160 } 159 }
161 160
162 TestSafeBrowsingUIManager::~TestSafeBrowsingUIManager() {} 161 TestSafeBrowsingUIManager::~TestSafeBrowsingUIManager() {}
163 } // namespace safe_browsing 162 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698