| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 DetermineIfPageSupportsInstant_Local); | 132 DetermineIfPageSupportsInstant_Local); |
| 133 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, | 133 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, |
| 134 DetermineIfPageSupportsInstant_NonLocal); | 134 DetermineIfPageSupportsInstant_NonLocal); |
| 135 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, | 135 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, |
| 136 PageURLDoesntBelongToInstantRenderer); | 136 PageURLDoesntBelongToInstantRenderer); |
| 137 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, PageSupportsInstant); | 137 FRIEND_TEST_ALL_PREFIXES(InstantTabTest, PageSupportsInstant); |
| 138 | 138 |
| 139 explicit SearchTabHelper(content::WebContents* web_contents); | 139 explicit SearchTabHelper(content::WebContents* web_contents); |
| 140 | 140 |
| 141 // Overridden from contents::WebContentsObserver: | 141 // Overridden from contents::WebContentsObserver: |
| 142 void RenderViewCreated(content::RenderViewHost* render_view_host) override; | |
| 143 void DidStartNavigationToPendingEntry( | 142 void DidStartNavigationToPendingEntry( |
| 144 const GURL& url, | 143 const GURL& url, |
| 145 content::NavigationController::ReloadType reload_type) override; | 144 content::NavigationController::ReloadType reload_type) override; |
| 146 void DidNavigateMainFrame( | 145 void DidNavigateMainFrame( |
| 147 const content::LoadCommittedDetails& details, | 146 const content::LoadCommittedDetails& details, |
| 148 const content::FrameNavigateParams& params) override; | 147 const content::FrameNavigateParams& params) override; |
| 149 void DidFinishLoad(content::RenderFrameHost* render_frame_host, | 148 void DidFinishLoad(content::RenderFrameHost* render_frame_host, |
| 150 const GURL& validated_url) override; | 149 const GURL& validated_url) override; |
| 151 void NavigationEntryCommitted( | 150 void NavigationEntryCommitted( |
| 152 const content::LoadCommittedDetails& load_details) override; | 151 const content::LoadCommittedDetails& load_details) override; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 SearchTabHelperDelegate* delegate_; | 218 SearchTabHelperDelegate* delegate_; |
| 220 | 219 |
| 221 // Function to check if the omnibox has focus. Tests use this to modify the | 220 // Function to check if the omnibox has focus. Tests use this to modify the |
| 222 // default behavior. | 221 // default behavior. |
| 223 OmniboxHasFocusFn omnibox_has_focus_fn_; | 222 OmniboxHasFocusFn omnibox_has_focus_fn_; |
| 224 | 223 |
| 225 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); | 224 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); |
| 226 }; | 225 }; |
| 227 | 226 |
| 228 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ | 227 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ |
| OLD | NEW |