| 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_SAFE_BROWSING_TAB_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_TAB_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_TAB_OBSERVER_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_TAB_OBSERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/prefs/pref_change_registrar.h" | 10 #include "chrome/browser/prefs/pref_change_registrar.h" |
| 11 #include "content/public/browser/notification_observer.h" | 11 #include "content/public/browser/notification_observer.h" |
| 12 | 12 |
| 13 class TabContentsWrapper; | 13 class TabContents; |
| 14 typedef TabContents TabContentsWrapper; |
| 14 | 15 |
| 15 namespace safe_browsing { | 16 namespace safe_browsing { |
| 16 | 17 |
| 17 class ClientSideDetectionHost; | 18 class ClientSideDetectionHost; |
| 18 | 19 |
| 19 // Per-tab class to handle safe-browsing functionality. | 20 // Per-tab class to handle safe-browsing functionality. |
| 20 class SafeBrowsingTabObserver : public content::NotificationObserver { | 21 class SafeBrowsingTabObserver : public content::NotificationObserver { |
| 21 public: | 22 public: |
| 22 explicit SafeBrowsingTabObserver(TabContentsWrapper* wrapper); | 23 explicit SafeBrowsingTabObserver(TabContentsWrapper* wrapper); |
| 23 virtual ~SafeBrowsingTabObserver(); | 24 virtual ~SafeBrowsingTabObserver(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 41 TabContentsWrapper* wrapper_; | 42 TabContentsWrapper* wrapper_; |
| 42 | 43 |
| 43 PrefChangeRegistrar pref_change_registrar_; | 44 PrefChangeRegistrar pref_change_registrar_; |
| 44 | 45 |
| 45 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingTabObserver); | 46 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingTabObserver); |
| 46 }; | 47 }; |
| 47 | 48 |
| 48 } // namespace safe_browsing | 49 } // namespace safe_browsing |
| 49 | 50 |
| 50 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_TAB_OBSERVER_H_ | 51 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_TAB_OBSERVER_H_ |
| OLD | NEW |