Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: chrome/browser/ui/omnibox/omnibox_controller.cc

Issue 823133004: Cleanup: Update the path to gfx rect headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rect_f.h Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/omnibox_controller.h" 5 #include "chrome/browser/ui/omnibox/omnibox_controller.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "chrome/browser/autocomplete/autocomplete_classifier.h" 8 #include "chrome/browser/autocomplete/autocomplete_classifier.h"
9 #include "chrome/browser/net/predictor.h" 9 #include "chrome/browser/net/predictor.h"
10 #include "chrome/browser/predictors/autocomplete_action_predictor.h" 10 #include "chrome/browser/predictors/autocomplete_action_predictor.h"
11 #include "chrome/browser/prerender/prerender_field_trial.h" 11 #include "chrome/browser/prerender/prerender_field_trial.h"
12 #include "chrome/browser/prerender/prerender_manager.h" 12 #include "chrome/browser/prerender/prerender_manager.h"
13 #include "chrome/browser/prerender/prerender_manager_factory.h" 13 #include "chrome/browser/prerender/prerender_manager_factory.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/search/search.h" 15 #include "chrome/browser/search/search.h"
16 #include "chrome/browser/search_engines/template_url_service_factory.h" 16 #include "chrome/browser/search_engines/template_url_service_factory.h"
17 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h" 17 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h"
18 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" 18 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h"
19 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" 19 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h"
20 #include "chrome/browser/ui/omnibox/omnibox_popup_view.h" 20 #include "chrome/browser/ui/omnibox/omnibox_popup_view.h"
21 #include "chrome/common/instant_types.h" 21 #include "chrome/common/instant_types.h"
22 #include "components/omnibox/autocomplete_match.h" 22 #include "components/omnibox/autocomplete_match.h"
23 #include "components/omnibox/search_provider.h" 23 #include "components/omnibox/search_provider.h"
24 #include "components/search/search.h" 24 #include "components/search/search.h"
25 #include "extensions/common/constants.h" 25 #include "extensions/common/constants.h"
26 #include "ui/gfx/rect.h" 26 #include "ui/gfx/geometry/rect.h"
27 27
28 namespace { 28 namespace {
29 29
30 // Returns the AutocompleteMatch that the InstantController should prefetch, if 30 // Returns the AutocompleteMatch that the InstantController should prefetch, if
31 // any. 31 // any.
32 // 32 //
33 // The SearchProvider may mark some suggestions to be prefetched based on 33 // The SearchProvider may mark some suggestions to be prefetched based on
34 // instructions from the suggest server. If such a match ranks sufficiently 34 // instructions from the suggest server. If such a match ranks sufficiently
35 // highly or if kAllowPrefetchNonDefaultMatch field trial is enabled, we'll 35 // highly or if kAllowPrefetchNonDefaultMatch field trial is enabled, we'll
36 // return it. 36 // return it.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 if (profile_->GetNetworkPredictor()) { 155 if (profile_->GetNetworkPredictor()) {
156 profile_->GetNetworkPredictor()->AnticipateOmniboxUrl( 156 profile_->GetNetworkPredictor()->AnticipateOmniboxUrl(
157 match.destination_url, 157 match.destination_url,
158 predictors::AutocompleteActionPredictor::IsPreconnectable(match)); 158 predictors::AutocompleteActionPredictor::IsPreconnectable(match));
159 } 159 }
160 // We could prefetch the alternate nav URL, if any, but because there 160 // We could prefetch the alternate nav URL, if any, but because there
161 // can be many of these as a user types an initial series of characters, 161 // can be many of these as a user types an initial series of characters,
162 // the OS DNS cache could suffer eviction problems for minimal gain. 162 // the OS DNS cache could suffer eviction problems for minimal gain.
163 } 163 }
164 } 164 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/metro_pin_tab_helper_win.cc ('k') | chrome/browser/ui/omnibox/omnibox_popup_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698