| 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 #ifndef CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| 11 #include "base/scoped_callback_factory.h" | 11 #include "base/scoped_callback_factory.h" |
| 12 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 12 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 13 #include "chrome/browser/tab_contents/tab_contents_observer.h" | 13 #include "content/browser/tab_contents/tab_contents_observer.h" |
| 14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 15 | 15 |
| 16 class TabContents; | 16 class TabContents; |
| 17 | 17 |
| 18 namespace safe_browsing { | 18 namespace safe_browsing { |
| 19 | 19 |
| 20 class ClientSideDetectionService; | 20 class ClientSideDetectionService; |
| 21 | 21 |
| 22 // This class is used to receive the IPC from the renderer which | 22 // This class is used to receive the IPC from the renderer which |
| 23 // notifies the browser that a URL was classified as phishing. This | 23 // notifies the browser that a URL was classified as phishing. This |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 scoped_refptr<SafeBrowsingService> sb_service_; | 64 scoped_refptr<SafeBrowsingService> sb_service_; |
| 65 | 65 |
| 66 base::ScopedCallbackFactory<ClientSideDetectionHost> cb_factory_; | 66 base::ScopedCallbackFactory<ClientSideDetectionHost> cb_factory_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); | 68 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace safe_browsing | 71 } // namespace safe_browsing |
| 72 | 72 |
| 73 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ | 73 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ |
| OLD | NEW |