| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_SAFE_BROWSING_SERVICE_H_ | 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ |
| 9 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ | 9 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 int render_process_host_id; | 65 int render_process_host_id; |
| 66 int render_view_id; | 66 int render_view_id; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 // Creates the safe browsing service. Need to initialize before using. | 69 // Creates the safe browsing service. Need to initialize before using. |
| 70 SafeBrowsingService(); | 70 SafeBrowsingService(); |
| 71 ~SafeBrowsingService(); | 71 ~SafeBrowsingService(); |
| 72 | 72 |
| 73 // Initializes the service. io_loop is the message loop that the | 73 // Initializes the service. io_loop is the message loop that the |
| 74 // caller of this service (ResourceDispatcherHost) wants to be notified on | 74 // caller of this service (ResourceDispatcherHost) wants to be notified on |
| 75 // for check results. db_loop is the message loop for the thread to do | 75 // for check results. |
| 76 // the database work. | |
| 77 void Initialize(MessageLoop* io_loop); | 76 void Initialize(MessageLoop* io_loop); |
| 78 | 77 |
| 79 // Called to initialize objects that are used on the io_thread. | 78 // Called to initialize objects that are used on the io_thread. |
| 80 void OnIOInitialize(MessageLoop* notify_loop, | 79 void OnIOInitialize(MessageLoop* notify_loop, |
| 81 const std::string& client_key, | 80 const std::string& client_key, |
| 82 const std::string& wrapped_key); | 81 const std::string& wrapped_key); |
| 83 | 82 |
| 84 // Called to initialize objects that are used on the db_thread. | 83 // Called to initialize objects that are used on the db_thread. |
| 85 void OnDBInitialize(); | 84 void OnDBInitialize(); |
| 86 | 85 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 Client* client; | 299 Client* client; |
| 301 GURL url; | 300 GURL url; |
| 302 base::Time start; | 301 base::Time start; |
| 303 } QueuedCheck; | 302 } QueuedCheck; |
| 304 std::deque<QueuedCheck> queued_checks_; | 303 std::deque<QueuedCheck> queued_checks_; |
| 305 | 304 |
| 306 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingService); | 305 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingService); |
| 307 }; | 306 }; |
| 308 | 307 |
| 309 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ | 308 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ |
| OLD | NEW |