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

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

Issue 2078021: First pass at experimental omnibox API. There are plenty of rough edges and (Closed)
Patch Set: no prefer_keyword Created 10 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
OLDNEW
1 // Copyright (c) 2009 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_SEARCH_ENGINES_TEMPLATE_URL_H_ 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_
6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/time.h" 11 #include "base/time.h"
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 } 414 }
415 415
416 // Returns the unique identifier of this TemplateURL. The unique ID is set 416 // Returns the unique identifier of this TemplateURL. The unique ID is set
417 // by the TemplateURLModel when the TemplateURL is added to it. 417 // by the TemplateURLModel when the TemplateURL is added to it.
418 IDType id() const { return id_; } 418 IDType id() const { return id_; }
419 419
420 // If this TemplateURL comes from prepopulated data the prepopulate_id is > 0. 420 // If this TemplateURL comes from prepopulated data the prepopulate_id is > 0.
421 void set_prepopulate_id(int id) { prepopulate_id_ = id; } 421 void set_prepopulate_id(int id) { prepopulate_id_ = id; }
422 int prepopulate_id() const { return prepopulate_id_; } 422 int prepopulate_id() const { return prepopulate_id_; }
423 423
424 std::string GetExtensionId() const;
425 bool IsExtensionKeyword() const;
426
424 private: 427 private:
425 friend class WebDatabaseTest; 428 friend class WebDatabaseTest;
426 friend class WebDatabase; 429 friend class WebDatabase;
427 friend class TemplateURLModel; 430 friend class TemplateURLModel;
428 431
429 // Invalidates cached values on this object and its child TemplateURLRefs. 432 // Invalidates cached values on this object and its child TemplateURLRefs.
430 void InvalidateCachedValues() const; 433 void InvalidateCachedValues() const;
431 434
432 // Unique identifier, used when archived to the database. 435 // Unique identifier, used when archived to the database.
433 void set_id(IDType id) { id_ = id;} 436 void set_id(IDType id) { id_ = id;}
(...skipping 17 matching lines...) Expand all
451 std::vector<std::string> input_encodings_; 454 std::vector<std::string> input_encodings_;
452 IDType id_; 455 IDType id_;
453 base::Time date_created_; 456 base::Time date_created_;
454 int usage_count_; 457 int usage_count_;
455 int prepopulate_id_; 458 int prepopulate_id_;
456 459
457 // TODO(sky): Add date last parsed OSD file. 460 // TODO(sky): Add date last parsed OSD file.
458 }; 461 };
459 462
460 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ 463 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/location_bar_view_gtk.cc ('k') | chrome/browser/search_engines/template_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698