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

Side by Side Diff: chrome/browser/search_engines/template_url.h

Issue 66073: Makes the omnibox show past searches and suggestions for keywords.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « chrome/browser/importer/importer.cc ('k') | chrome/browser/search_engines/template_url.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_TEMPLATE_URL_H__ 5 #ifndef CHROME_BROWSER_TEMPLATE_URL_H__
6 #define CHROME_BROWSER_TEMPLATE_URL_H__ 6 #define CHROME_BROWSER_TEMPLATE_URL_H__
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 int width; 243 int width;
244 int height; 244 int height;
245 245
246 // URL of the image. 246 // URL of the image.
247 GURL url; 247 GURL url;
248 }; 248 };
249 249
250 // Generates a favicon URL from the specified url. 250 // Generates a favicon URL from the specified url.
251 static GURL GenerateFaviconURL(const GURL& url); 251 static GURL GenerateFaviconURL(const GURL& url);
252 252
253 // Returns true if |true| is non-null and has a search URL that supports
254 // replacement.
255 static bool SupportsReplacement(const TemplateURL* turl);
256
253 TemplateURL() 257 TemplateURL()
254 : autogenerate_keyword_(false), 258 : autogenerate_keyword_(false),
255 show_in_default_list_(false), 259 show_in_default_list_(false),
256 safe_for_autoreplace_(false), 260 safe_for_autoreplace_(false),
257 id_(0), 261 id_(0),
258 date_created_(base::Time::Now()), 262 date_created_(base::Time::Now()),
259 usage_count_(0), 263 usage_count_(0),
260 prepopulate_id_(0) {} 264 prepopulate_id_(0) {}
261 ~TemplateURL() {} 265 ~TemplateURL() {}
262 266
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 std::vector<std::string> input_encodings_; 430 std::vector<std::string> input_encodings_;
427 IDType id_; 431 IDType id_;
428 base::Time date_created_; 432 base::Time date_created_;
429 int usage_count_; 433 int usage_count_;
430 int prepopulate_id_; 434 int prepopulate_id_;
431 435
432 // TODO(sky): Add date last parsed OSD file. 436 // TODO(sky): Add date last parsed OSD file.
433 }; 437 };
434 438
435 #endif // CHROME_BROWSER_TEMPLATE_URL_PARSER_H__ 439 #endif // CHROME_BROWSER_TEMPLATE_URL_PARSER_H__
OLDNEW
« no previous file with comments | « chrome/browser/importer/importer.cc ('k') | chrome/browser/search_engines/template_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698