summaryrefslogtreecommitdiffstats
path: root/chrome/browser/search_engines/template_url.h
diff options
context:
space:
mode:
authorlevin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-31 22:37:11 +0000
committerlevin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-31 22:37:11 +0000
commit8b62334be15306086414ae6c490ee8a58de65338 (patch)
treeabe94dd6210e914146ed1e177087320a0eb60cf5 /chrome/browser/search_engines/template_url.h
parentcba2196088043137c76fe1a7206506154e3c0a1d (diff)
downloadchromium_src-8b62334be15306086414ae6c490ee8a58de65338.zip
chromium_src-8b62334be15306086414ae6c490ee8a58de65338.tar.gz
chromium_src-8b62334be15306086414ae6c490ee8a58de65338.tar.bz2
Reduce the number of files that recompile when changing template_url.h or template_url_model.h.
Separated out the TemplateURL::IDType which is now TemplateURLId into its own file, since this was a primary reason for including template_url.h in another header. Similarly separate out the TemplateURLModelObserver from template_url_model.h to reduce how often that file is included. BUG=None TEST=Compiling. Review URL: http://codereview.chromium.org/3270011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58080 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/search_engines/template_url.h')
-rw-r--r--chrome/browser/search_engines/template_url.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/search_engines/template_url.h b/chrome/browser/search_engines/template_url.h
index 7c061c4..35e88d5 100644
--- a/chrome/browser/search_engines/template_url.h
+++ b/chrome/browser/search_engines/template_url.h
@@ -11,6 +11,7 @@
#include "base/gtest_prod_util.h"
#include "base/time.h"
+#include "chrome/browser/search_engines/template_url_id.h"
#include "chrome/browser/search_engines/template_url_prepopulate_data.h"
#include "googleurl/src/gurl.h"
@@ -235,8 +236,6 @@ class TemplateURLRef {
// Describes the relevant portions of a single OSD document.
class TemplateURL {
public:
- typedef int64 IDType;
-
// Describes a single image reference. Each TemplateURL may have
// any number (including 0) of ImageRefs.
//
@@ -428,7 +427,7 @@ class TemplateURL {
// 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_; }
+ TemplateURLID id() const { return id_; }
// If this TemplateURL comes from prepopulated data the prepopulate_id is > 0.
void set_prepopulate_id(int id) { prepopulate_id_ = id; }
@@ -452,7 +451,7 @@ class TemplateURL {
void InvalidateCachedValues() const;
// Unique identifier, used when archived to the database.
- void set_id(IDType id) { id_ = id;}
+ void set_id(TemplateURLID id) { id_ = id;}
std::wstring short_name_;
std::wstring description_;
@@ -471,7 +470,7 @@ class TemplateURL {
std::vector<std::wstring> languages_;
// List of supported input encodings.
std::vector<std::string> input_encodings_;
- IDType id_;
+ TemplateURLID id_;
base::Time date_created_;
int usage_count_;
TemplateURLPrepopulateData::SearchEngineType search_engine_type_;