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

Side by Side Diff: components/safe_browsing_db/v4_local_database_manager.cc

Issue 1988433002: Replace ThreatEntryType::URL_EXPRESSION with ThreatEntryType::URL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 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 "components/safe_browsing_db/v4_local_database_manager.h" 5 #include "components/safe_browsing_db/v4_local_database_manager.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "components/safe_browsing_db/safebrowsing.pb.h" 9 #include "components/safe_browsing_db/safebrowsing.pb.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // TODO(vakh): Remove this if/endif block when the V4Database is implemented. 139 // TODO(vakh): Remove this if/endif block when the V4Database is implemented.
140 // Filed as http://crbug.com/608075 140 // Filed as http://crbug.com/608075
141 UpdateListIdentifier update_list_identifier; 141 UpdateListIdentifier update_list_identifier;
142 #if defined(OS_WIN) 142 #if defined(OS_WIN)
143 update_list_identifier.platform_type = WINDOWS_PLATFORM; 143 update_list_identifier.platform_type = WINDOWS_PLATFORM;
144 #elif defined (OS_LINUX) 144 #elif defined (OS_LINUX)
145 update_list_identifier.platform_type = LINUX_PLATFORM; 145 update_list_identifier.platform_type = LINUX_PLATFORM;
146 #else 146 #else
147 update_list_identifier.platform_type = OSX_PLATFORM; 147 update_list_identifier.platform_type = OSX_PLATFORM;
148 #endif 148 #endif
149 update_list_identifier.threat_entry_type = URL_EXPRESSION; 149 update_list_identifier.threat_entry_type = URL;
150 update_list_identifier.threat_type = MALWARE_THREAT; 150 update_list_identifier.threat_type = MALWARE_THREAT;
151 current_list_states_[update_list_identifier] = ""; 151 current_list_states_[update_list_identifier] = "";
152 #endif 152 #endif
153 153
154 V4UpdateCallback callback = base::Bind( 154 V4UpdateCallback callback = base::Bind(
155 &V4LocalDatabaseManager::UpdateRequestCompleted, base::Unretained(this)); 155 &V4LocalDatabaseManager::UpdateRequestCompleted, base::Unretained(this));
156 v4_update_protocol_manager_ = V4UpdateProtocolManager::Create( 156 v4_update_protocol_manager_ = V4UpdateProtocolManager::Create(
157 request_context_getter, config, current_list_states_, callback); 157 request_context_getter, config, current_list_states_, callback);
158 158
159 enabled_ = true; 159 enabled_ = true;
(...skipping 11 matching lines...) Expand all
171 enabled_ = false; 171 enabled_ = false;
172 SafeBrowsingDatabaseManager::StopOnIOThread(shutdown); 172 SafeBrowsingDatabaseManager::StopOnIOThread(shutdown);
173 } 173 }
174 174
175 void V4LocalDatabaseManager::UpdateRequestCompleted( 175 void V4LocalDatabaseManager::UpdateRequestCompleted(
176 const std::vector<ListUpdateResponse>& responses) { 176 const std::vector<ListUpdateResponse>& responses) {
177 // TODO(vakh): Updates downloaded. Store them on disk and record new state. 177 // TODO(vakh): Updates downloaded. Store them on disk and record new state.
178 } 178 }
179 179
180 } // namespace safe_browsing 180 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698