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

Side by Side Diff: athena/main/url_search_provider.cc

Issue 443043003: Rename components/autocomplete to components/omnibox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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 #include "athena/main/url_search_provider.h" 5 #include "athena/main/url_search_provider.h"
6 6
7 #include "athena/activity/public/activity_factory.h" 7 #include "athena/activity/public/activity_factory.h"
8 #include "athena/activity/public/activity_manager.h" 8 #include "athena/activity/public/activity_manager.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "components/autocomplete/autocomplete_input.h"
12 #include "components/autocomplete/autocomplete_scheme_classifier.h"
13 #include "components/autocomplete/search_suggestion_parser.h"
14 #include "components/metrics/proto/omnibox_event.pb.h" 11 #include "components/metrics/proto/omnibox_event.pb.h"
15 #include "components/metrics/proto/omnibox_input_type.pb.h" 12 #include "components/metrics/proto/omnibox_input_type.pb.h"
13 #include "components/omnibox/autocomplete_input.h"
14 #include "components/omnibox/autocomplete_scheme_classifier.h"
15 #include "components/omnibox/search_suggestion_parser.h"
16 #include "components/search_engines/search_terms_data.h" 16 #include "components/search_engines/search_terms_data.h"
17 #include "components/search_engines/template_url.h" 17 #include "components/search_engines/template_url.h"
18 #include "components/search_engines/template_url_service.h" 18 #include "components/search_engines/template_url_service.h"
19 #include "components/search_engines/template_url_service_client.h" 19 #include "components/search_engines/template_url_service_client.h"
20 #include "content/public/browser/browser_context.h" 20 #include "content/public/browser/browser_context.h"
21 #include "net/base/load_flags.h" 21 #include "net/base/load_flags.h"
22 #include "net/url_request/url_fetcher.h" 22 #include "net/url_request/url_fetcher.h"
23 #include "net/url_request/url_request.h" 23 #include "net/url_request/url_request.h"
24 #include "ui/app_list/search_result.h" 24 #include "ui/app_list/search_result.h"
25 #include "url/gurl.h" 25 #include "url/gurl.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 return; 238 return;
239 } 239 }
240 suggestion_fetcher_.reset( 240 suggestion_fetcher_.reset(
241 net::URLFetcher::Create(suggest_url, net::URLFetcher::GET, this)); 241 net::URLFetcher::Create(suggest_url, net::URLFetcher::GET, this));
242 suggestion_fetcher_->SetRequestContext(browser_context_->GetRequestContext()); 242 suggestion_fetcher_->SetRequestContext(browser_context_->GetRequestContext());
243 suggestion_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES); 243 suggestion_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES);
244 suggestion_fetcher_->Start(); 244 suggestion_fetcher_->Start();
245 } 245 }
246 246
247 } // namespace athena 247 } // namespace athena
OLDNEW
« no previous file with comments | « athena/main/url_search_provider.h ('k') | chrome/android/java/src/org/chromium/chrome/browser/omnibox/OmniboxSuggestion.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698