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

Unified Diff: chrome/browser/extensions/app_notification.h

Issue 8567018: Limit number of notifications that can be received by the client. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « no previous file | chrome/browser/extensions/app_notification.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | chrome/browser/extensions/app_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698