| Index: chrome/browser/net/predictor_tab_helper.h
|
| diff --git a/chrome/browser/net/predictor_tab_helper.h b/chrome/browser/net/predictor_tab_helper.h
|
| index 643dbc9de9055f15f51bc4439a8dcd60b753c7da..7172aec5b55ed3ea05482e7502f870a710841898 100644
|
| --- a/chrome/browser/net/predictor_tab_helper.h
|
| +++ b/chrome/browser/net/predictor_tab_helper.h
|
| @@ -6,6 +6,7 @@
|
| #define CHROME_BROWSER_NET_PREDICTOR_TAB_HELPER_H_
|
|
|
| #include "base/macros.h"
|
| +#include "base/memory/weak_ptr.h"
|
| #include "content/public/browser/notification_observer.h"
|
| #include "content/public/browser/notification_registrar.h"
|
| #include "content/public/browser/reload_type.h"
|
| @@ -36,7 +37,10 @@ class PredictorTabHelper
|
| explicit PredictorTabHelper(content::WebContents* web_contents);
|
| friend class content::WebContentsUserData<PredictorTabHelper>;
|
|
|
| - void PreconnectUrl(const GURL& url);
|
| + void HandleNavigation(const GURL& url);
|
| + void DidStartServiceWorkerForNavigaionPreconnect(const GURL& url,
|
| + bool success);
|
| + void PreconnectUrlWithPredictor(const GURL& url);
|
|
|
| // This boolean is set to true after a call to
|
| // DidStartNavigationToPendingEntry, which fires off predictive preconnects.
|
| @@ -47,6 +51,8 @@ class PredictorTabHelper
|
| // especially on Android.
|
| bool predicted_from_pending_entry_;
|
|
|
| + base::WeakPtrFactory<PredictorTabHelper> weak_factory_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(PredictorTabHelper);
|
| };
|
|
|
|
|