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

Side by Side Diff: chrome/browser/autocomplete/search_provider.h

Issue 10386063: Move URLFetcherDelegate to net/ and split URLFetcher between net/ and content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head, fix win component build Created 8 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 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 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 // This file contains the Search autocomplete provider. This provider is 5 // This file contains the Search autocomplete provider. This provider is
6 // responsible for all non-keyword autocomplete entries that start with 6 // responsible for all non-keyword autocomplete entries that start with
7 // "Search <engine> for ...", including searching for the current input string, 7 // "Search <engine> for ...", including searching for the current input string,
8 // search history, and search suggestions. An instance of it gets created and 8 // search history, and search suggestions. An instance of it gets created and
9 // managed by the autocomplete controller. 9 // managed by the autocomplete controller.
10 // 10 //
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // the instant result. 66 // the instant result.
67 void FinalizeInstantQuery(const string16& input_text, 67 void FinalizeInstantQuery(const string16& input_text,
68 const string16& suggest_text); 68 const string16& suggest_text);
69 69
70 // AutocompleteProvider 70 // AutocompleteProvider
71 virtual void Start(const AutocompleteInput& input, 71 virtual void Start(const AutocompleteInput& input,
72 bool minimal_changes) OVERRIDE; 72 bool minimal_changes) OVERRIDE;
73 virtual void Stop() OVERRIDE; 73 virtual void Stop() OVERRIDE;
74 74
75 // content::URLFetcherDelegate 75 // content::URLFetcherDelegate
76 virtual void OnURLFetchComplete(const content::URLFetcher* source) OVERRIDE; 76 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
77 77
78 // ID used in creating URLFetcher for default provider's suggest results. 78 // ID used in creating URLFetcher for default provider's suggest results.
79 static const int kDefaultProviderURLFetcherID; 79 static const int kDefaultProviderURLFetcherID;
80 80
81 // ID used in creating URLFetcher for keyword provider's suggest results. 81 // ID used in creating URLFetcher for keyword provider's suggest results.
82 static const int kKeywordProviderURLFetcherID; 82 static const int kKeywordProviderURLFetcherID;
83 83
84 private: 84 private:
85 virtual ~SearchProvider(); 85 virtual ~SearchProvider();
86 86
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 // Has FinalizeInstantQuery been invoked since the last |Start|? 343 // Has FinalizeInstantQuery been invoked since the last |Start|?
344 bool instant_finalized_; 344 bool instant_finalized_;
345 345
346 // The |suggest_text| parameter passed to FinalizeInstantQuery. 346 // The |suggest_text| parameter passed to FinalizeInstantQuery.
347 string16 default_provider_suggest_text_; 347 string16 default_provider_suggest_text_;
348 348
349 DISALLOW_COPY_AND_ASSIGN(SearchProvider); 349 DISALLOW_COPY_AND_ASSIGN(SearchProvider);
350 }; 350 };
351 351
352 #endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ 352 #endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/alternate_nav_url_fetcher.cc ('k') | chrome/browser/autocomplete/search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698