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

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_database.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SAFE_BROWSING_DATABASE_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 SafeBrowsingStore* side_effect_free_whitelist_store, 283 SafeBrowsingStore* side_effect_free_whitelist_store,
284 SafeBrowsingStore* ip_blacklist_store); 284 SafeBrowsingStore* ip_blacklist_store);
285 285
286 // Create a database with a browse store. This is a legacy interface that 286 // Create a database with a browse store. This is a legacy interface that
287 // useds Sqlite. 287 // useds Sqlite.
288 SafeBrowsingDatabaseNew(); 288 SafeBrowsingDatabaseNew();
289 289
290 virtual ~SafeBrowsingDatabaseNew(); 290 virtual ~SafeBrowsingDatabaseNew();
291 291
292 // Implement SafeBrowsingDatabase interface. 292 // Implement SafeBrowsingDatabase interface.
293 virtual void Init(const base::FilePath& filename) OVERRIDE; 293 virtual void Init(const base::FilePath& filename) override;
294 virtual bool ResetDatabase() OVERRIDE; 294 virtual bool ResetDatabase() override;
295 virtual bool ContainsBrowseUrl( 295 virtual bool ContainsBrowseUrl(
296 const GURL& url, 296 const GURL& url,
297 std::vector<SBPrefix>* prefix_hits, 297 std::vector<SBPrefix>* prefix_hits,
298 std::vector<SBFullHashResult>* cache_hits) OVERRIDE; 298 std::vector<SBFullHashResult>* cache_hits) override;
299 virtual bool ContainsDownloadUrl(const std::vector<GURL>& urls, 299 virtual bool ContainsDownloadUrl(const std::vector<GURL>& urls,
300 std::vector<SBPrefix>* prefix_hits) OVERRIDE; 300 std::vector<SBPrefix>* prefix_hits) override;
301 virtual bool ContainsCsdWhitelistedUrl(const GURL& url) OVERRIDE; 301 virtual bool ContainsCsdWhitelistedUrl(const GURL& url) override;
302 virtual bool ContainsDownloadWhitelistedUrl(const GURL& url) OVERRIDE; 302 virtual bool ContainsDownloadWhitelistedUrl(const GURL& url) override;
303 virtual bool ContainsDownloadWhitelistedString( 303 virtual bool ContainsDownloadWhitelistedString(
304 const std::string& str) OVERRIDE; 304 const std::string& str) override;
305 virtual bool ContainsExtensionPrefixes( 305 virtual bool ContainsExtensionPrefixes(
306 const std::vector<SBPrefix>& prefixes, 306 const std::vector<SBPrefix>& prefixes,
307 std::vector<SBPrefix>* prefix_hits) OVERRIDE; 307 std::vector<SBPrefix>* prefix_hits) override;
308 virtual bool ContainsSideEffectFreeWhitelistUrl(const GURL& url) OVERRIDE; 308 virtual bool ContainsSideEffectFreeWhitelistUrl(const GURL& url) override;
309 virtual bool ContainsMalwareIP(const std::string& ip_address) OVERRIDE; 309 virtual bool ContainsMalwareIP(const std::string& ip_address) override;
310 virtual bool UpdateStarted(std::vector<SBListChunkRanges>* lists) OVERRIDE; 310 virtual bool UpdateStarted(std::vector<SBListChunkRanges>* lists) override;
311 virtual void InsertChunks(const std::string& list_name, 311 virtual void InsertChunks(const std::string& list_name,
312 const std::vector<SBChunkData*>& chunks) OVERRIDE; 312 const std::vector<SBChunkData*>& chunks) override;
313 virtual void DeleteChunks( 313 virtual void DeleteChunks(
314 const std::vector<SBChunkDelete>& chunk_deletes) OVERRIDE; 314 const std::vector<SBChunkDelete>& chunk_deletes) override;
315 virtual void UpdateFinished(bool update_succeeded) OVERRIDE; 315 virtual void UpdateFinished(bool update_succeeded) override;
316 virtual void CacheHashResults( 316 virtual void CacheHashResults(
317 const std::vector<SBPrefix>& prefixes, 317 const std::vector<SBPrefix>& prefixes,
318 const std::vector<SBFullHashResult>& full_hits, 318 const std::vector<SBFullHashResult>& full_hits,
319 const base::TimeDelta& cache_lifetime) OVERRIDE; 319 const base::TimeDelta& cache_lifetime) override;
320 320
321 // Returns the value of malware_kill_switch_; 321 // Returns the value of malware_kill_switch_;
322 virtual bool IsMalwareIPMatchKillSwitchOn() OVERRIDE; 322 virtual bool IsMalwareIPMatchKillSwitchOn() override;
323 323
324 // Returns true if the CSD whitelist has everything whitelisted. 324 // Returns true if the CSD whitelist has everything whitelisted.
325 virtual bool IsCsdWhitelistKillSwitchOn() OVERRIDE; 325 virtual bool IsCsdWhitelistKillSwitchOn() override;
326 326
327 private: 327 private:
328 friend class SafeBrowsingDatabaseTest; 328 friend class SafeBrowsingDatabaseTest;
329 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingDatabaseTest, HashCaching); 329 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingDatabaseTest, HashCaching);
330 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingDatabaseTest, CachedFullMiss); 330 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingDatabaseTest, CachedFullMiss);
331 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingDatabaseTest, CachedPrefixHitFullMiss); 331 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingDatabaseTest, CachedPrefixHitFullMiss);
332 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingDatabaseTest, BrowseFullHashMatching); 332 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingDatabaseTest, BrowseFullHashMatching);
333 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingDatabaseTest, 333 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingDatabaseTest,
334 BrowseFullHashAndPrefixMatching); 334 BrowseFullHashAndPrefixMatching);
335 335
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 scoped_ptr<safe_browsing::PrefixSet> browse_prefix_set_; 469 scoped_ptr<safe_browsing::PrefixSet> browse_prefix_set_;
470 470
471 // Used to check if a prefix was in the browse database. 471 // Used to check if a prefix was in the browse database.
472 scoped_ptr<safe_browsing::PrefixSet> side_effect_free_whitelist_prefix_set_; 472 scoped_ptr<safe_browsing::PrefixSet> side_effect_free_whitelist_prefix_set_;
473 473
474 // Used to schedule resetting the database because of corruption. 474 // Used to schedule resetting the database because of corruption.
475 base::WeakPtrFactory<SafeBrowsingDatabaseNew> reset_factory_; 475 base::WeakPtrFactory<SafeBrowsingDatabaseNew> reset_factory_;
476 }; 476 };
477 477
478 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_ 478 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698