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 #include "chrome/browser/safe_browsing/client_side_detection_host.h" | 5 #include "chrome/browser/safe_browsing/client_side_detection_host.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/common/safe_browsing/csd.pb.h" | 22 #include "chrome/common/safe_browsing/csd.pb.h" |
23 #include "chrome/common/safe_browsing/safebrowsing_messages.h" | 23 #include "chrome/common/safe_browsing/safebrowsing_messages.h" |
24 #include "content/browser/browser_thread.h" | 24 #include "content/browser/browser_thread.h" |
25 #include "content/browser/renderer_host/render_process_host.h" | 25 #include "content/browser/renderer_host/render_process_host.h" |
26 #include "content/browser/renderer_host/render_view_host.h" | 26 #include "content/browser/renderer_host/render_view_host.h" |
27 #include "content/browser/renderer_host/render_view_host_delegate.h" | 27 #include "content/browser/renderer_host/render_view_host_delegate.h" |
28 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 28 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
29 #include "content/browser/renderer_host/resource_request_details.h" | 29 #include "content/browser/renderer_host/resource_request_details.h" |
30 #include "content/browser/tab_contents/navigation_details.h" | 30 #include "content/browser/tab_contents/navigation_details.h" |
31 #include "content/browser/tab_contents/tab_contents.h" | 31 #include "content/browser/tab_contents/tab_contents.h" |
32 #include "content/common/notification_service.h" | 32 #include "content/public/browser/notification_details.h" |
| 33 #include "content/public/browser/notification_source.h" |
33 #include "content/common/view_messages.h" | 34 #include "content/common/view_messages.h" |
34 #include "content/public/browser/notification_types.h" | 35 #include "content/public/browser/notification_types.h" |
35 #include "googleurl/src/gurl.h" | 36 #include "googleurl/src/gurl.h" |
36 | 37 |
37 namespace safe_browsing { | 38 namespace safe_browsing { |
38 | 39 |
39 // This class is instantiated each time a new toplevel URL loads, and | 40 // This class is instantiated each time a new toplevel URL loads, and |
40 // asynchronously checks whether the phishing classifier should run for this | 41 // asynchronously checks whether the phishing classifier should run for this |
41 // URL. If so, it notifies the renderer with a StartPhishingDetection IPC. | 42 // URL. If so, it notifies the renderer with a StartPhishingDetection IPC. |
42 // Objects of this class are ref-counted and will be destroyed once nobody | 43 // Objects of this class are ref-counted and will be destroyed once nobody |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 if (sb_service_) { | 486 if (sb_service_) { |
486 sb_service_->RemoveObserver(this); | 487 sb_service_->RemoveObserver(this); |
487 } | 488 } |
488 sb_service_ = service; | 489 sb_service_ = service; |
489 if (sb_service_) { | 490 if (sb_service_) { |
490 sb_service_->AddObserver(this); | 491 sb_service_->AddObserver(this); |
491 } | 492 } |
492 } | 493 } |
493 | 494 |
494 } // namespace safe_browsing | 495 } // namespace safe_browsing |
OLD | NEW |