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

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

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 // The Safe Browsing service is responsible for downloading anti-phishing and 5 // The Safe Browsing service is responsible for downloading anti-phishing and
6 // anti-malware tables and checking urls against them. 6 // anti-malware tables and checking urls against them.
7 7
8 #ifndef CHROME_BROWSER_SAFE_BROWSING_DATABASE_MANAGER_H_ 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_DATABASE_MANAGER_H_
9 #define CHROME_BROWSER_SAFE_BROWSING_DATABASE_MANAGER_H_ 9 #define CHROME_BROWSER_SAFE_BROWSING_DATABASE_MANAGER_H_
10 10
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 // Helper function that calls safe browsing client and cleans up |checks_|. 334 // Helper function that calls safe browsing client and cleans up |checks_|.
335 void SafeBrowsingCheckDone(SafeBrowsingCheck* check); 335 void SafeBrowsingCheckDone(SafeBrowsingCheck* check);
336 336
337 // Helper function to set |check| with default values and start a safe 337 // Helper function to set |check| with default values and start a safe
338 // browsing check with timeout of |timeout|. |task| will be called on 338 // browsing check with timeout of |timeout|. |task| will be called on
339 // success, otherwise TimeoutCallback will be called. 339 // success, otherwise TimeoutCallback will be called.
340 void StartSafeBrowsingCheck(SafeBrowsingCheck* check, 340 void StartSafeBrowsingCheck(SafeBrowsingCheck* check,
341 const base::Closure& task); 341 const base::Closure& task);
342 342
343 // SafeBrowsingProtocolManageDelegate override 343 // SafeBrowsingProtocolManageDelegate override
344 virtual void ResetDatabase() OVERRIDE; 344 virtual void ResetDatabase() override;
345 virtual void UpdateStarted() OVERRIDE; 345 virtual void UpdateStarted() override;
346 virtual void UpdateFinished(bool success) OVERRIDE; 346 virtual void UpdateFinished(bool success) override;
347 virtual void GetChunks(GetChunksCallback callback) OVERRIDE; 347 virtual void GetChunks(GetChunksCallback callback) override;
348 virtual void AddChunks(const std::string& list, 348 virtual void AddChunks(const std::string& list,
349 scoped_ptr<ScopedVector<SBChunkData> > chunks, 349 scoped_ptr<ScopedVector<SBChunkData> > chunks,
350 AddChunksCallback callback) OVERRIDE; 350 AddChunksCallback callback) override;
351 virtual void DeleteChunks( 351 virtual void DeleteChunks(
352 scoped_ptr<std::vector<SBChunkDelete> > chunk_deletes) OVERRIDE; 352 scoped_ptr<std::vector<SBChunkDelete> > chunk_deletes) override;
353 353
354 scoped_refptr<SafeBrowsingService> sb_service_; 354 scoped_refptr<SafeBrowsingService> sb_service_;
355 355
356 CurrentChecks checks_; 356 CurrentChecks checks_;
357 357
358 // Used for issuing only one GetHash request for a given prefix. 358 // Used for issuing only one GetHash request for a given prefix.
359 GetHashRequests gethash_requests_; 359 GetHashRequests gethash_requests_;
360 360
361 // The persistent database. We don't use a scoped_ptr because it 361 // The persistent database. We don't use a scoped_ptr because it
362 // needs to be destroyed on a different thread than this object. 362 // needs to be destroyed on a different thread than this object.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 409
410 std::deque<QueuedCheck> queued_checks_; 410 std::deque<QueuedCheck> queued_checks_;
411 411
412 // Timeout to use for safe browsing checks. 412 // Timeout to use for safe browsing checks.
413 base::TimeDelta check_timeout_; 413 base::TimeDelta check_timeout_;
414 414
415 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingDatabaseManager); 415 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingDatabaseManager);
416 }; 416 };
417 417
418 #endif // CHROME_BROWSER_SAFE_BROWSING_DATABASE_MANAGER_H_ 418 #endif // CHROME_BROWSER_SAFE_BROWSING_DATABASE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/client_side_detection_service.h ('k') | chrome/browser/safe_browsing/download_feedback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698