| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_UI_SEARCH_SEARCH_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ |
| 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 DetermineIfPageSupportsInstant_Local); | 116 DetermineIfPageSupportsInstant_Local); |
| 117 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, | 117 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, |
| 118 DetermineIfPageSupportsInstant_NonLocal); | 118 DetermineIfPageSupportsInstant_NonLocal); |
| 119 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, | 119 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, |
| 120 PageURLDoesntBelongToInstantRenderer); | 120 PageURLDoesntBelongToInstantRenderer); |
| 121 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, PageSupportsInstant); | 121 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, PageSupportsInstant); |
| 122 | 122 |
| 123 explicit SearchTabHelper(content::WebContents* web_contents); | 123 explicit SearchTabHelper(content::WebContents* web_contents); |
| 124 | 124 |
| 125 // Overridden from contents::WebContentsObserver: | 125 // Overridden from contents::WebContentsObserver: |
| 126 void DidStartNavigationToPendingEntry( |
| 127 const GURL& url, |
| 128 content::ReloadType reload_type) override; |
| 126 void DidStartNavigation( | 129 void DidStartNavigation( |
| 127 content::NavigationHandle* navigation_handle) override; | 130 content::NavigationHandle* navigation_handle) override; |
| 128 void DidFinishNavigation( | 131 void DidFinishNavigation( |
| 129 content::NavigationHandle* navigation_handle) override; | 132 content::NavigationHandle* navigation_handle) override; |
| 130 void DidFinishLoad(content::RenderFrameHost* render_frame_host, | 133 void DidFinishLoad(content::RenderFrameHost* render_frame_host, |
| 131 const GURL& validated_url) override; | 134 const GURL& validated_url) override; |
| 132 void NavigationEntryCommitted( | 135 void NavigationEntryCommitted( |
| 133 const content::LoadCommittedDetails& load_details) override; | 136 const content::LoadCommittedDetails& load_details) override; |
| 134 | 137 |
| 135 // Overridden from SearchIPCRouter::Delegate: | 138 // Overridden from SearchIPCRouter::Delegate: |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 192 |
| 190 // Delegate for notifying our owner about the SearchTabHelper state. Not owned | 193 // Delegate for notifying our owner about the SearchTabHelper state. Not owned |
| 191 // by us. | 194 // by us. |
| 192 // NULL on iOS and Android because they don't use the Instant framework. | 195 // NULL on iOS and Android because they don't use the Instant framework. |
| 193 SearchTabHelperDelegate* delegate_; | 196 SearchTabHelperDelegate* delegate_; |
| 194 | 197 |
| 195 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); | 198 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); |
| 196 }; | 199 }; |
| 197 | 200 |
| 198 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ | 201 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ |
| OLD | NEW |