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

Unified Diff: components/doodle/doodle_types.h

Issue 2748653002: [Doodle] Add conversion to dictionary for DoodleImage and DoodleConfig (Closed)
Patch Set: includes Created 3 years, 9 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
Index: components/doodle/doodle_types.h
diff --git a/components/doodle/doodle_types.h b/components/doodle/doodle_types.h
index f5faa2da2f3496a78e50333db56fc6fcb51c2465..92ee3ef9092f1123d020faa1f622fab2e201ee41 100644
--- a/components/doodle/doodle_types.h
+++ b/components/doodle/doodle_types.h
@@ -5,6 +5,9 @@
#ifndef COMPONENTS_DOODLE_DOODLE_TYPES_H_
#define COMPONENTS_DOODLE_DOODLE_TYPES_H_
+#include <memory>
+#include <string>
+
#include "base/optional.h"
#include "url/gurl.h"
@@ -40,6 +43,8 @@ struct DoodleImage {
const base::DictionaryValue& dict,
const base::Optional<GURL>& base_url);
+ std::unique_ptr<base::DictionaryValue> ToDictionary() const;
+
bool operator==(const DoodleImage& other) const;
bool operator!=(const DoodleImage& other) const;
@@ -63,6 +68,8 @@ struct DoodleConfig {
const base::DictionaryValue& dict,
const base::Optional<GURL>& base_url);
+ std::unique_ptr<base::DictionaryValue> ToDictionary() const;
+
bool operator==(const DoodleConfig& other) const;
bool operator!=(const DoodleConfig& other) const;

Powered by Google App Engine
This is Rietveld 408576698