| OLD | NEW | 
 | (Empty) | 
|   1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |  | 
|   2 // Use of this source code is governed by a BSD-style license that can be |  | 
|   3 // found in the LICENSE file. |  | 
|   4  |  | 
|   5 #ifndef CHROME_BROWSER_UI_SEARCH_ENGINES_SEARCH_ENGINE_TAB_HELPER_DELEGATE_H_ |  | 
|   6 #define CHROME_BROWSER_UI_SEARCH_ENGINES_SEARCH_ENGINE_TAB_HELPER_DELEGATE_H_ |  | 
|   7  |  | 
|   8 class Profile; |  | 
|   9 class TemplateURL; |  | 
|  10  |  | 
|  11 namespace content { |  | 
|  12 class WebContents; |  | 
|  13 } |  | 
|  14  |  | 
|  15 // Objects implement this interface to get notified about changes in the |  | 
|  16 // SearchEngineTabHelper and to provide necessary functionality. |  | 
|  17 class SearchEngineTabHelperDelegate { |  | 
|  18  public: |  | 
|  19   // Shows a confirmation dialog box for adding a search engine described by |  | 
|  20   // |template_url|. Takes ownership of |template_url|. |  | 
|  21   virtual void ConfirmAddSearchProvider(TemplateURL* template_url, |  | 
|  22                                         Profile* profile) = 0; |  | 
|  23  |  | 
|  24  protected: |  | 
|  25   virtual ~SearchEngineTabHelperDelegate(); |  | 
|  26 }; |  | 
|  27  |  | 
|  28 #endif  // CHROME_BROWSER_UI_SEARCH_ENGINES_SEARCH_ENGINE_TAB_HELPER_DELEGATE_H_ |  | 
| OLD | NEW |