| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/ui/omnibox/chrome_omnibox_client.h" | 5 #include "chrome/browser/ui/omnibox/chrome_omnibox_client.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "chrome/browser/prerender/prerender_manager.h" | 27 #include "chrome/browser/prerender/prerender_manager.h" |
| 28 #include "chrome/browser/prerender/prerender_manager_factory.h" | 28 #include "chrome/browser/prerender/prerender_manager_factory.h" |
| 29 #include "chrome/browser/profiles/profile.h" | 29 #include "chrome/browser/profiles/profile.h" |
| 30 #include "chrome/browser/search/search.h" | 30 #include "chrome/browser/search/search.h" |
| 31 #include "chrome/browser/search_engines/template_url_service_factory.h" | 31 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 32 #include "chrome/browser/sessions/session_tab_helper.h" | 32 #include "chrome/browser/sessions/session_tab_helper.h" |
| 33 #include "chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h" | 33 #include "chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h" |
| 34 #include "chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.h" | 34 #include "chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.h" |
| 35 #include "chrome/browser/ui/search/instant_search_prerenderer.h" | 35 #include "chrome/browser/ui/search/instant_search_prerenderer.h" |
| 36 #include "chrome/browser/ui/search/search_tab_helper.h" | 36 #include "chrome/browser/ui/search/search_tab_helper.h" |
| 37 #include "chrome/common/instant_types.h" | |
| 38 #include "chrome/common/pref_names.h" | 37 #include "chrome/common/pref_names.h" |
| 38 #include "chrome/common/search/instant_types.h" |
| 39 #include "chrome/common/url_constants.h" | 39 #include "chrome/common/url_constants.h" |
| 40 #include "components/favicon/content/content_favicon_driver.h" | 40 #include "components/favicon/content/content_favicon_driver.h" |
| 41 #include "components/omnibox/browser/autocomplete_match.h" | 41 #include "components/omnibox/browser/autocomplete_match.h" |
| 42 #include "components/omnibox/browser/autocomplete_result.h" | 42 #include "components/omnibox/browser/autocomplete_result.h" |
| 43 #include "components/omnibox/browser/search_provider.h" | 43 #include "components/omnibox/browser/search_provider.h" |
| 44 #include "components/prefs/pref_service.h" | 44 #include "components/prefs/pref_service.h" |
| 45 #include "components/search/search.h" | 45 #include "components/search/search.h" |
| 46 #include "components/search_engines/template_url_service.h" | 46 #include "components/search_engines/template_url_service.h" |
| 47 #include "content/public/browser/navigation_controller.h" | 47 #include "content/public/browser/navigation_controller.h" |
| 48 #include "content/public/browser/navigation_entry.h" | 48 #include "content/public/browser/navigation_entry.h" |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 if (prerenderer) | 470 if (prerenderer) |
| 471 prerenderer->Prerender(suggestion); | 471 prerenderer->Prerender(suggestion); |
| 472 } | 472 } |
| 473 } | 473 } |
| 474 | 474 |
| 475 void ChromeOmniboxClient::OnBitmapFetched(const BitmapFetchedCallback& callback, | 475 void ChromeOmniboxClient::OnBitmapFetched(const BitmapFetchedCallback& callback, |
| 476 const SkBitmap& bitmap) { | 476 const SkBitmap& bitmap) { |
| 477 request_id_ = BitmapFetcherService::REQUEST_ID_INVALID; | 477 request_id_ = BitmapFetcherService::REQUEST_ID_INVALID; |
| 478 callback.Run(bitmap); | 478 callback.Run(bitmap); |
| 479 } | 479 } |
| OLD | NEW |