| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_ENGINES_SEARCH_ENGINE_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_ENGINES_SEARCH_ENGINE_TAB_HELPER_H_ |
| 6 #define CHROME_BROWSER_UI_SEARCH_ENGINES_SEARCH_ENGINE_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_ENGINES_SEARCH_ENGINE_TAB_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 10 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
| 11 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 11 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
| 12 #include "chrome/common/search_provider.h" | |
| 13 #include "content/public/browser/web_contents_observer.h" | 12 #include "content/public/browser/web_contents_observer.h" |
| 14 #include "content/public/browser/web_contents_user_data.h" | 13 #include "content/public/browser/web_contents_user_data.h" |
| 15 | 14 |
| 16 class TemplateURL; | 15 class TemplateURL; |
| 17 | 16 |
| 18 // Per-tab search engine manager. Handles dealing search engine processing | 17 // Per-tab search engine manager. Handles dealing search engine processing |
| 19 // functionality. | 18 // functionality. |
| 20 class SearchEngineTabHelper | 19 class SearchEngineTabHelper |
| 21 : public content::WebContentsObserver, | 20 : public content::WebContentsObserver, |
| 22 public content::WebContentsUserData<SearchEngineTabHelper> { | 21 public content::WebContentsUserData<SearchEngineTabHelper> { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 39 void OnPageHasOSDD(const GURL& page_url, const GURL& osdd_url); | 38 void OnPageHasOSDD(const GURL& page_url, const GURL& osdd_url); |
| 40 | 39 |
| 41 // If params has a searchable form, this tries to create a new keyword. | 40 // If params has a searchable form, this tries to create a new keyword. |
| 42 void GenerateKeywordIfNecessary( | 41 void GenerateKeywordIfNecessary( |
| 43 const content::FrameNavigateParams& params); | 42 const content::FrameNavigateParams& params); |
| 44 | 43 |
| 45 DISALLOW_COPY_AND_ASSIGN(SearchEngineTabHelper); | 44 DISALLOW_COPY_AND_ASSIGN(SearchEngineTabHelper); |
| 46 }; | 45 }; |
| 47 | 46 |
| 48 #endif // CHROME_BROWSER_UI_SEARCH_ENGINES_SEARCH_ENGINE_TAB_HELPER_H_ | 47 #endif // CHROME_BROWSER_UI_SEARCH_ENGINES_SEARCH_ENGINE_TAB_HELPER_H_ |
| OLD | NEW |