Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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); | |
|
Scott Hess - ex-Googler
2016/06/28 03:58:43
I'd say "responses" is still a reasonable argument
| |
| 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 Loading... | |
| 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_ |
| OLD | NEW |