| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "ui/base/window_open_disposition.h" | 11 #include "ui/base/window_open_disposition.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 class WebContents; | 14 class WebContents; |
| 15 } | 15 } |
| 16 | 16 |
| 17 class GURL; | |
| 18 class OmniboxView; | 17 class OmniboxView; |
| 19 | 18 |
| 20 // Objects implement this interface to get notified about changes in the | 19 // Objects implement this interface to get notified about changes in the |
| 21 // SearchTabHelper and to provide necessary functionality. | 20 // SearchTabHelper and to provide necessary functionality. |
| 22 class SearchTabHelperDelegate { | 21 class SearchTabHelperDelegate { |
| 23 public: | 22 public: |
| 24 // Invoked when the |web_contents| no longer supports Instant. | 23 // Invoked when the |web_contents| no longer supports Instant. |
| 25 virtual void OnWebContentsInstantSupportDisabled( | 24 virtual void OnWebContentsInstantSupportDisabled( |
| 26 const content::WebContents* web_contents); | 25 const content::WebContents* web_contents); |
| 27 | 26 |
| 28 // Returns the OmniboxView or NULL if not available. | 27 // Returns the OmniboxView or NULL if not available. |
| 29 virtual OmniboxView* GetOmniboxView(); | 28 virtual OmniboxView* GetOmniboxView(); |
| 30 | 29 |
| 31 // Returns a set containing the canonical URLs of the currently open tabs. | 30 // Returns a set containing the canonical URLs of the currently open tabs. |
| 32 virtual std::set<std::string> GetOpenUrls(); | 31 virtual std::set<std::string> GetOpenUrls(); |
| 33 | 32 |
| 34 protected: | 33 protected: |
| 35 virtual ~SearchTabHelperDelegate(); | 34 virtual ~SearchTabHelperDelegate(); |
| 36 }; | 35 }; |
| 37 | 36 |
| 38 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_DELEGATE_H_ | 37 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_DELEGATE_H_ |
| OLD | NEW |