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

Unified Diff: chrome/browser/search_engines/template_url.h

Issue 3040022: Add new search engine logos to template url data.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/search_engines/template_url_prepopulate_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/template_url.h
===================================================================
--- chrome/browser/search_engines/template_url.h (revision 53861)
+++ chrome/browser/search_engines/template_url.h (working copy)
@@ -11,6 +11,7 @@
#include "base/gtest_prod_util.h"
#include "base/time.h"
+#include "chrome/browser/search_engines/template_url_prepopulate_data.h"
#include "googleurl/src/gurl.h"
class TemplateURL;
@@ -274,6 +275,8 @@
id_(0),
date_created_(base::Time::Now()),
usage_count_(0),
+ search_engine_type_(TemplateURLPrepopulateData::SEARCH_ENGINE_OTHER),
+ logo_id_(0),
prepopulate_id_(0) {}
~TemplateURL() {}
@@ -414,6 +417,17 @@
return input_encodings_;
}
+ void set_search_engine_type(TemplateURLPrepopulateData::SearchEngineType
+ search_engine_type) {
+ search_engine_type_ = search_engine_type;
+ }
+ TemplateURLPrepopulateData::SearchEngineType search_engine_type() const {
+ return search_engine_type_;
+ }
+
+ void set_logo_id(int logo_id) { logo_id_ = logo_id; }
+ int logo_id() const { return logo_id_; }
+
// Returns the unique identifier of this TemplateURL. The unique ID is set
// by the TemplateURLModel when the TemplateURL is added to it.
IDType id() const { return id_; }
@@ -456,6 +470,8 @@
IDType id_;
base::Time date_created_;
int usage_count_;
+ TemplateURLPrepopulateData::SearchEngineType search_engine_type_;
+ int logo_id_;
int prepopulate_id_;
// TODO(sky): Add date last parsed OSD file.
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/search_engines/template_url_prepopulate_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698