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