OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_NET_PREDICTOR_TAB_HELPER_H_ |
| 6 #define CHROME_BROWSER_NET_PREDICTOR_TAB_HELPER_H_ |
| 7 |
| 8 #include "content/public/browser/notification_observer.h" |
| 9 #include "content/public/browser/notification_registrar.h" |
| 10 #include "content/public/browser/web_contents_observer.h" |
| 11 #include "content/public/browser/web_contents_user_data.h" |
| 12 |
| 13 namespace chrome_browser_net { |
| 14 |
| 15 class PredictorTabHelper |
| 16 : public content::NotificationObserver, |
| 17 public content::WebContentsUserData<PredictorTabHelper> { |
| 18 public: |
| 19 virtual ~PredictorTabHelper(); |
| 20 |
| 21 // content::NotificationObserver implementation |
| 22 virtual void Observe(int type, |
| 23 const content::NotificationSource& source, |
| 24 const content::NotificationDetails& details) OVERRIDE; |
| 25 |
| 26 private: |
| 27 explicit PredictorTabHelper(content::WebContents* web_contents); |
| 28 friend class content::WebContentsUserData<PredictorTabHelper>; |
| 29 |
| 30 void DidNavigation(const GURL& url, const GURL& original_url); |
| 31 |
| 32 content::NotificationRegistrar registrar_; |
| 33 |
| 34 content::WebContents* const web_contents_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(PredictorTabHelper); |
| 37 }; |
| 38 |
| 39 } // namespace chrome_browser_net |
| 40 |
| 41 #endif // CHROME_BROWSER_NET_PREDICTOR_TAB_HELPER_H_ |
OLD | NEW |