| Index: chrome/browser/extensions/app_notification.h
|
| ===================================================================
|
| --- chrome/browser/extensions/app_notification.h (revision 109957)
|
| +++ chrome/browser/extensions/app_notification.h (working copy)
|
| @@ -9,6 +9,7 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| +#include "base/time.h"
|
| #include "base/memory/linked_ptr.h"
|
| #include "base/values.h"
|
| #include "googleurl/src/gurl.h"
|
| @@ -21,6 +22,7 @@
|
| // If |is_local| is true, notification is not synced.
|
| // If |guid| is empty, a new guid is automatically created.
|
| AppNotification(bool is_local,
|
| + const base::Time& creation_time,
|
| const std::string& guid,
|
| const std::string& extension_id,
|
| const std::string& title,
|
| @@ -34,9 +36,13 @@
|
| // Setters for optional properties.
|
| void set_link_url(const GURL& url) { link_url_ = url; }
|
| void set_link_text(const std::string& text) { link_text_ = text; }
|
| + void set_creation_time(const base::Time& creation_time) {
|
| + creation_time_ = creation_time;
|
| + }
|
|
|
| // Accessors.
|
| bool is_local() const { return is_local_; }
|
| + const base::Time creation_time() const { return creation_time_; }
|
| const std::string& guid() const { return guid_; }
|
| const std::string& extension_id() const { return extension_id_; }
|
| const std::string& title() const { return title_; }
|
| @@ -59,6 +65,7 @@
|
| // Whether notification is local only, which means it is not synced
|
| // across machines.
|
| bool is_local_;
|
| + base::Time creation_time_;
|
| std::string guid_;
|
| std::string extension_id_;
|
| std::string title_;
|
|
|