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

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

Issue 2103693002: SafeBrowsing PVer4: Send mutable response to the database and the stores (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_ReadFromDisk
Patch Set: Minor: Add the explicit keyword for UpdateListIdentifier constructor Created 4 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 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 #ifndef COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ 5 #ifndef COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_
6 #define COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ 6 #define COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_
7 7
8 // A class that provides the interface between the SafeBrowsing protocol manager 8 // A class that provides the interface between the SafeBrowsing protocol manager
9 // and database that holds the downloaded updates. 9 // and database that holds the downloaded updates.
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 bool MatchModuleWhitelistString(const std::string& str) override; 55 bool MatchModuleWhitelistString(const std::string& str) override;
56 bool CheckResourceUrl(const GURL& url, Client* client) override; 56 bool CheckResourceUrl(const GURL& url, Client* client) override;
57 bool IsMalwareKillSwitchOn() override; 57 bool IsMalwareKillSwitchOn() override;
58 bool IsCsdWhitelistKillSwitchOn() override; 58 bool IsCsdWhitelistKillSwitchOn() override;
59 59
60 private: 60 private:
61 ~V4LocalDatabaseManager() override; 61 ~V4LocalDatabaseManager() override;
62 62
63 // The callback called each time the protocol manager downloads updates 63 // The callback called each time the protocol manager downloads updates
64 // successfully. 64 // successfully.
65 void UpdateRequestCompleted(const std::vector<ListUpdateResponse>& responses); 65 void UpdateRequestCompleted(
66 std::unique_ptr<ParsedServerResponse> parsed_server_response);
66 67
67 void SetupUpdateProtocolManager( 68 void SetupUpdateProtocolManager(
68 net::URLRequestContextGetter* request_context_getter, 69 net::URLRequestContextGetter* request_context_getter,
69 const V4ProtocolConfig& config); 70 const V4ProtocolConfig& config);
70 71
71 void SetupDatabase(); 72 void SetupDatabase();
72 73
73 void DatabaseReady(std::unique_ptr<V4Database> v4_database); 74 void DatabaseReady(std::unique_ptr<V4Database> v4_database);
74 75
75 // Called when the database has been updated and schedules the next update. 76 // Called when the database has been updated and schedules the next update.
(...skipping 25 matching lines...) Expand all
101 // The sequenced task runner for running safe browsing database operations. 102 // The sequenced task runner for running safe browsing database operations.
102 scoped_refptr<base::SequencedTaskRunner> task_runner_; 103 scoped_refptr<base::SequencedTaskRunner> task_runner_;
103 104
104 friend class base::RefCountedThreadSafe<V4LocalDatabaseManager>; 105 friend class base::RefCountedThreadSafe<V4LocalDatabaseManager>;
105 DISALLOW_COPY_AND_ASSIGN(V4LocalDatabaseManager); 106 DISALLOW_COPY_AND_ASSIGN(V4LocalDatabaseManager);
106 }; // class V4LocalDatabaseManager 107 }; // class V4LocalDatabaseManager
107 108
108 } // namespace safe_browsing 109 } // namespace safe_browsing
109 110
110 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ 111 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_
OLDNEW
« no previous file with comments | « components/safe_browsing_db/v4_database_unittest.cc ('k') | components/safe_browsing_db/v4_local_database_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698