| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // Invoked when the active navigation entry is updated in some way that might | 64 // Invoked when the active navigation entry is updated in some way that might |
| 65 // affect the search mode. This is used by Instant when it "fixes up" the | 65 // affect the search mode. This is used by Instant when it "fixes up" the |
| 66 // virtual URL of the active entry. Regular navigations are captured through | 66 // virtual URL of the active entry. Regular navigations are captured through |
| 67 // the notification system and shouldn't call this method. | 67 // the notification system and shouldn't call this method. |
| 68 void NavigationEntryUpdated(); | 68 void NavigationEntryUpdated(); |
| 69 | 69 |
| 70 // Sends the current SearchProvider suggestion to the Instant page if any. | 70 // Sends the current SearchProvider suggestion to the Instant page if any. |
| 71 void SetSuggestionToPrefetch(const InstantSuggestion& suggestion); | 71 void SetSuggestionToPrefetch(const InstantSuggestion& suggestion); |
| 72 | 72 |
| 73 // Tells the page that the user pressed Enter in the omnibox. | 73 // Tells the page that the user pressed Enter in the omnibox. |
| 74 void Submit(const base::string16& text, | 74 void Submit(const EmbeddedSearchRequestParams& params); |
| 75 const EmbeddedSearchRequestParams& params); | |
| 76 | 75 |
| 77 // Called when the tab corresponding to |this| instance is activated. | 76 // Called when the tab corresponding to |this| instance is activated. |
| 78 void OnTabActivated(); | 77 void OnTabActivated(); |
| 79 | 78 |
| 80 // Called when the tab corresponding to |this| instance is deactivated. | 79 // Called when the tab corresponding to |this| instance is deactivated. |
| 81 void OnTabDeactivated(); | 80 void OnTabDeactivated(); |
| 82 | 81 |
| 83 SearchIPCRouter& ipc_router_for_testing() { return ipc_router_; } | 82 SearchIPCRouter& ipc_router_for_testing() { return ipc_router_; } |
| 84 | 83 |
| 85 private: | 84 private: |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 content::WebContents* web_contents_; | 177 content::WebContents* web_contents_; |
| 179 | 178 |
| 180 SearchIPCRouter ipc_router_; | 179 SearchIPCRouter ipc_router_; |
| 181 | 180 |
| 182 InstantService* instant_service_; | 181 InstantService* instant_service_; |
| 183 | 182 |
| 184 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); | 183 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); |
| 185 }; | 184 }; |
| 186 | 185 |
| 187 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ | 186 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ |
| OLD | NEW |