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

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

Issue 1513023: Strips http from omnibox (and a couple of other places) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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
« no previous file with comments | « app/text_elider_unittest.cc ('k') | chrome/browser/autocomplete/autocomplete.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_AUTOCOMPLETE_AUTOCOMPLETE_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 static size_t TrimHttpPrefix(std::wstring* url); 554 static size_t TrimHttpPrefix(std::wstring* url);
555 555
556 // Updates the starred state of each of the matches in matches_ from the 556 // Updates the starred state of each of the matches in matches_ from the
557 // profile's bookmark bar model. 557 // profile's bookmark bar model.
558 void UpdateStarredStateOfMatches(); 558 void UpdateStarredStateOfMatches();
559 559
560 // A convenience function to call net::FormatUrl() with the current set of 560 // A convenience function to call net::FormatUrl() with the current set of
561 // "Accept Languages" when check_accept_lang is true. Otherwise, it's called 561 // "Accept Languages" when check_accept_lang is true. Otherwise, it's called
562 // with an empty list. 562 // with an empty list.
563 std::wstring StringForURLDisplay(const GURL& url, 563 std::wstring StringForURLDisplay(const GURL& url,
564 bool check_accept_lang) const; 564 bool check_accept_lang,
565 bool trim_http) const;
565 566
566 // The profile associated with the AutocompleteProvider. Reference is not 567 // The profile associated with the AutocompleteProvider. Reference is not
567 // owned by us. 568 // owned by us.
568 Profile* profile_; 569 Profile* profile_;
569 570
570 ACProviderListener* listener_; 571 ACProviderListener* listener_;
571 ACMatches matches_; 572 ACMatches matches_;
572 bool done_; 573 bool done_;
573 574
574 // The name of this provider. Used for logging. 575 // The name of this provider. Used for logging.
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 AutocompleteInput::Type input_type; 890 AutocompleteInput::Type input_type;
890 // Selected index (if selected) or -1 (AutocompletePopupModel::kNoMatch). 891 // Selected index (if selected) or -1 (AutocompletePopupModel::kNoMatch).
891 size_t selected_index; 892 size_t selected_index;
892 // Inline autocompleted length (if displayed). 893 // Inline autocompleted length (if displayed).
893 size_t inline_autocompleted_length; 894 size_t inline_autocompleted_length;
894 // Result set. 895 // Result set.
895 const AutocompleteResult& result; 896 const AutocompleteResult& result;
896 }; 897 };
897 898
898 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ 899 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
OLDNEW
« no previous file with comments | « app/text_elider_unittest.cc ('k') | chrome/browser/autocomplete/autocomplete.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698