OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_NET_PREDICTOR_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_NET_PREDICTOR_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_NET_PREDICTOR_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_NET_PREDICTOR_TAB_HELPER_H_ |
7 | 7 |
8 #include "base/feature_list.h" | |
8 #include "base/macros.h" | 9 #include "base/macros.h" |
9 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
10 #include "content/public/browser/notification_registrar.h" | 11 #include "content/public/browser/notification_registrar.h" |
11 #include "content/public/browser/reload_type.h" | 12 #include "content/public/browser/reload_type.h" |
12 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
13 #include "content/public/browser/web_contents_user_data.h" | 14 #include "content/public/browser/web_contents_user_data.h" |
14 | 15 |
16 namespace features { | |
17 | |
18 extern const base::Feature kPreconnectMore; | |
19 | |
20 } // namespace features | |
Ilya Sherman
2017/06/12 21:50:29
I don't think that it's appropriate for this heade
chaopeng
2017/06/28 19:21:24
Done.
| |
21 | |
15 namespace content { | 22 namespace content { |
16 class NavigationHandle; | 23 class NavigationHandle; |
17 } | 24 } |
18 | 25 |
19 namespace chrome_browser_net { | 26 namespace chrome_browser_net { |
20 | 27 |
21 class PredictorTabHelper | 28 class PredictorTabHelper |
22 : public content::WebContentsObserver, | 29 : public content::WebContentsObserver, |
23 public content::WebContentsUserData<PredictorTabHelper> { | 30 public content::WebContentsUserData<PredictorTabHelper> { |
24 public: | 31 public: |
(...skipping 21 matching lines...) Expand all Loading... | |
46 // render process spawn (pre-PlzNavigate), which can take substantial time | 53 // render process spawn (pre-PlzNavigate), which can take substantial time |
47 // especially on Android. | 54 // especially on Android. |
48 bool predicted_from_pending_entry_; | 55 bool predicted_from_pending_entry_; |
49 | 56 |
50 DISALLOW_COPY_AND_ASSIGN(PredictorTabHelper); | 57 DISALLOW_COPY_AND_ASSIGN(PredictorTabHelper); |
51 }; | 58 }; |
52 | 59 |
53 } // namespace chrome_browser_net | 60 } // namespace chrome_browser_net |
54 | 61 |
55 #endif // CHROME_BROWSER_NET_PREDICTOR_TAB_HELPER_H_ | 62 #endif // CHROME_BROWSER_NET_PREDICTOR_TAB_HELPER_H_ |
OLD | NEW |