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

Unified Diff: components/doodle/doodle_types.h

Issue 2748653002: [Doodle] Add conversion to dictionary for DoodleImage and DoodleConfig (Closed)
Patch Set: check invalid URL parsing result 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
« no previous file with comments | « components/doodle/BUILD.gn ('k') | components/doodle/doodle_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « components/doodle/BUILD.gn ('k') | components/doodle/doodle_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698