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

Side by Side Diff: chrome/browser/safe_browsing/protocol_manager.h

Issue 2829163004: Remove uses of base::hash_map from //chrome (Closed)
Patch Set: Downloads back Created 3 years, 5 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) 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 #ifndef CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_
7 7
8 // A class that implements Chrome's interface with the SafeBrowsing protocol. 8 // A class that implements Chrome's interface with the SafeBrowsing protocol.
9 // See https://developers.google.com/safe-browsing/developers_guide_v2 for 9 // See https://developers.google.com/safe-browsing/developers_guide_v2 for
10 // protocol details. 10 // protocol details.
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 base::TimeDelta next_update_interval_; 327 base::TimeDelta next_update_interval_;
328 base::OneShotTimer update_timer_; 328 base::OneShotTimer update_timer_;
329 329
330 // timeout_timer_ is used to interrupt update requests which are taking 330 // timeout_timer_ is used to interrupt update requests which are taking
331 // too long. 331 // too long.
332 base::OneShotTimer timeout_timer_; 332 base::OneShotTimer timeout_timer_;
333 333
334 // All chunk requests that need to be made. 334 // All chunk requests that need to be made.
335 std::deque<ChunkUrl> chunk_request_urls_; 335 std::deque<ChunkUrl> chunk_request_urls_;
336 336
337 base::hash_map<const net::URLFetcher*, 337 std::map<const net::URLFetcher*,
338 std::pair<std::unique_ptr<net::URLFetcher>, FullHashDetails>> 338 std::pair<std::unique_ptr<net::URLFetcher>, FullHashDetails>>
339 hash_requests_; 339 hash_requests_;
340 340
341 // True if the service has been given an add/sub chunk but it hasn't been 341 // True if the service has been given an add/sub chunk but it hasn't been
342 // added to the database yet. 342 // added to the database yet.
343 bool chunk_pending_to_write_; 343 bool chunk_pending_to_write_;
344 344
345 // The last time we successfully received an update. 345 // The last time we successfully received an update.
346 base::Time last_update_; 346 base::Time last_update_;
347 347
348 // While in GetHash backoff, we can't make another GetHash until this time. 348 // While in GetHash backoff, we can't make another GetHash until this time.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 AddChunksCallback callback) = 0; 440 AddChunksCallback callback) = 0;
441 441
442 // Delete chunks from the database. 442 // Delete chunks from the database.
443 virtual void DeleteChunks( 443 virtual void DeleteChunks(
444 std::unique_ptr<std::vector<SBChunkDelete>> chunk_deletes) = 0; 444 std::unique_ptr<std::vector<SBChunkDelete>> chunk_deletes) = 0;
445 }; 445 };
446 446
447 } // namespace safe_browsing 447 } // namespace safe_browsing
448 448
449 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ 449 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698