summaryrefslogtreecommitdiffstats
path: root/chrome/browser/google_apis/gdata_wapi_parser.h
diff options
context:
space:
mode:
authorkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-21 07:38:24 +0000
committerkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-21 07:38:24 +0000
commit740fe1eb708c775001dda1758ffab6232831febc (patch)
tree7266f2b1beaca00986219512829f13b1da50d355 /chrome/browser/google_apis/gdata_wapi_parser.h
parentd153e6ff6dafc24c3946184c1831538efe946532 (diff)
downloadchromium_src-740fe1eb708c775001dda1758ffab6232831febc.zip
chromium_src-740fe1eb708c775001dda1758ffab6232831febc.tar.gz
chromium_src-740fe1eb708c775001dda1758ffab6232831febc.tar.bz2
Stop using reinterpret_cast in gdata_wapi_parser.
BUG=none Review URL: https://chromiumcodereview.appspot.com/11635035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174354 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/google_apis/gdata_wapi_parser.h')
-rw-r--r--chrome/browser/google_apis/gdata_wapi_parser.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/google_apis/gdata_wapi_parser.h b/chrome/browser/google_apis/gdata_wapi_parser.h
index 7a59b5f..bd430df 100644
--- a/chrome/browser/google_apis/gdata_wapi_parser.h
+++ b/chrome/browser/google_apis/gdata_wapi_parser.h
@@ -336,11 +336,6 @@ class FeedEntry {
// List of entry categories.
const ScopedVector<Category>& categories() const { return categories_; }
- // Registers the mapping between JSON field names and the members in
- // this class.
- static void RegisterJSONConverter(
- base::JSONValueConverter<FeedEntry>* converter);
-
void set_etag(const std::string& etag) { etag_ = etag; }
void set_authors(ScopedVector<Author>* authors) {
authors_.swap(*authors);
@@ -356,6 +351,12 @@ class FeedEntry {
}
protected:
+ // Registers the mapping between JSON field names and the members in
+ // this class.
+ template<typename FeedEntryDescendant>
+ static void RegisterJSONConverter(
+ base::JSONValueConverter<FeedEntryDescendant>* converter);
+
std::string etag_;
ScopedVector<Author> authors_;
ScopedVector<Link> links_;