| 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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 DetermineIfPageSupportsInstant_NonLocal); | 122 DetermineIfPageSupportsInstant_NonLocal); |
| 123 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, | 123 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, |
| 124 PageURLDoesntBelongToInstantRenderer); | 124 PageURLDoesntBelongToInstantRenderer); |
| 125 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, PageSupportsInstant); | 125 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, PageSupportsInstant); |
| 126 | 126 |
| 127 explicit SearchTabHelper(content::WebContents* web_contents); | 127 explicit SearchTabHelper(content::WebContents* web_contents); |
| 128 | 128 |
| 129 // Overridden from contents::WebContentsObserver: | 129 // Overridden from contents::WebContentsObserver: |
| 130 void DidStartNavigationToPendingEntry( | 130 void DidStartNavigationToPendingEntry( |
| 131 const GURL& url, | 131 const GURL& url, |
| 132 content::NavigationController::ReloadType reload_type) override; | 132 content::ReloadType reload_type) override; |
| 133 void DidNavigateMainFrame( | 133 void DidNavigateMainFrame( |
| 134 const content::LoadCommittedDetails& details, | 134 const content::LoadCommittedDetails& details, |
| 135 const content::FrameNavigateParams& params) override; | 135 const content::FrameNavigateParams& params) override; |
| 136 void DidFinishLoad(content::RenderFrameHost* render_frame_host, | 136 void DidFinishLoad(content::RenderFrameHost* render_frame_host, |
| 137 const GURL& validated_url) override; | 137 const GURL& validated_url) override; |
| 138 void NavigationEntryCommitted( | 138 void NavigationEntryCommitted( |
| 139 const content::LoadCommittedDetails& load_details) override; | 139 const content::LoadCommittedDetails& load_details) override; |
| 140 | 140 |
| 141 // Overridden from SearchIPCRouter::Delegate: | 141 // Overridden from SearchIPCRouter::Delegate: |
| 142 void OnInstantSupportDetermined(bool supports_instant) override; | 142 void OnInstantSupportDetermined(bool supports_instant) override; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 // Delegate for notifying our owner about the SearchTabHelper state. Not owned | 197 // Delegate for notifying our owner about the SearchTabHelper state. Not owned |
| 198 // by us. | 198 // by us. |
| 199 // NULL on iOS and Android because they don't use the Instant framework. | 199 // NULL on iOS and Android because they don't use the Instant framework. |
| 200 SearchTabHelperDelegate* delegate_; | 200 SearchTabHelperDelegate* delegate_; |
| 201 | 201 |
| 202 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); | 202 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ | 205 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ |
| OLD | NEW |