| OLD | NEW |
| 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 // Helper class which handles communication with the SafeBrowsing backends for | 5 // Helper class which handles communication with the SafeBrowsing backends for |
| 6 // client-side phishing detection. This class can be used to get a file | 6 // client-side phishing detection. This class can be used to get a file |
| 7 // descriptor to the client-side phishing model and also to send a ping back to | 7 // descriptor to the client-side phishing model and also to send a ping back to |
| 8 // Google to verify if a particular site is really phishing or not. | 8 // Google to verify if a particular site is really phishing or not. |
| 9 // | 9 // |
| 10 // This class is not thread-safe and expects all calls to be made on the UI | 10 // This class is not thread-safe and expects all calls to be made on the UI |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "base/callback.h" | 25 #include "base/callback.h" |
| 26 #include "base/file_path.h" | 26 #include "base/file_path.h" |
| 27 #include "base/gtest_prod_util.h" | 27 #include "base/gtest_prod_util.h" |
| 28 #include "base/memory/linked_ptr.h" | 28 #include "base/memory/linked_ptr.h" |
| 29 #include "base/memory/ref_counted.h" | 29 #include "base/memory/ref_counted.h" |
| 30 #include "base/memory/scoped_callback_factory.h" | 30 #include "base/memory/scoped_callback_factory.h" |
| 31 #include "base/memory/scoped_ptr.h" | 31 #include "base/memory/scoped_ptr.h" |
| 32 #include "base/platform_file.h" | 32 #include "base/platform_file.h" |
| 33 #include "base/task.h" | 33 #include "base/task.h" |
| 34 #include "base/time.h" | 34 #include "base/time.h" |
| 35 #include "chrome/common/net/url_fetcher.h" | |
| 36 #include "content/common/notification_observer.h" | 35 #include "content/common/notification_observer.h" |
| 37 #include "content/common/notification_registrar.h" | 36 #include "content/common/notification_registrar.h" |
| 37 #include "content/common/url_fetcher.h" |
| 38 #include "googleurl/src/gurl.h" | 38 #include "googleurl/src/gurl.h" |
| 39 #include "net/base/net_util.h" | 39 #include "net/base/net_util.h" |
| 40 | 40 |
| 41 class RenderProcessHost; | 41 class RenderProcessHost; |
| 42 | 42 |
| 43 namespace net { | 43 namespace net { |
| 44 class URLRequestContextGetter; | 44 class URLRequestContextGetter; |
| 45 class URLRequestStatus; | 45 class URLRequestStatus; |
| 46 } // namespace net | 46 } // namespace net |
| 47 | 47 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 std::vector<AddressRange> private_networks_; | 255 std::vector<AddressRange> private_networks_; |
| 256 | 256 |
| 257 NotificationRegistrar registrar_; | 257 NotificationRegistrar registrar_; |
| 258 | 258 |
| 259 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionService); | 259 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionService); |
| 260 }; | 260 }; |
| 261 | 261 |
| 262 } // namepsace safe_browsing | 262 } // namepsace safe_browsing |
| 263 | 263 |
| 264 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_SERVICE_H_ | 264 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_SERVICE_H_ |
| OLD | NEW |