OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "components/safe_browsing_db/database_manager.h" | 5 #include "components/safe_browsing_db/database_manager.h" |
6 | 6 |
| 7 #include "components/safe_browsing_db/v4_get_hash_protocol_manager.h" |
| 8 #include "net/url_request/url_request_context_getter.h" |
7 #include "url/gurl.h" | 9 #include "url/gurl.h" |
8 | 10 |
9 namespace safe_browsing { | 11 namespace safe_browsing { |
10 | 12 |
| 13 SafeBrowsingDatabaseManager::SafeBrowsingDatabaseManager() |
| 14 : SafeBrowsingDatabaseManager(NULL, V4GetHashProtocolConfig()) { |
| 15 } |
| 16 |
| 17 SafeBrowsingDatabaseManager::SafeBrowsingDatabaseManager( |
| 18 net::URLRequestContextGetter* request_context_getter, |
| 19 const V4GetHashProtocolConfig& config) { |
| 20 // Instantiate a V4GetHashProtocolManager. |
| 21 if (request_context_getter) { |
| 22 v4_get_hash_protocol_manager_.reset(V4GetHashProtocolManager::Create( |
| 23 request_context_getter, config)); |
| 24 } |
| 25 } |
| 26 |
| 27 SafeBrowsingDatabaseManager::~SafeBrowsingDatabaseManager() { |
| 28 } |
| 29 |
11 void SafeBrowsingDatabaseManager::CheckApiBlacklistUrl(const GURL& url, | 30 void SafeBrowsingDatabaseManager::CheckApiBlacklistUrl(const GURL& url, |
12 Client* client) { | 31 Client* client) { |
13 // TODO(kcarattini): Implement this. | 32 // TODO(kcarattini): Implement this. |
14 } | 33 } |
15 | 34 |
16 } // namespace safe_browsing | 35 } // namespace safe_browsing |
OLD | NEW |