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

Unified Diff: chrome/browser/services/gcm/push_messaging_application_id.h

Issue 931113003: [Push] Use proper accessors for PushMessagingApplicationId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 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 | « no previous file | chrome/browser/services/gcm/push_messaging_application_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/services/gcm/push_messaging_application_id.h
diff --git a/chrome/browser/services/gcm/push_messaging_application_id.h b/chrome/browser/services/gcm/push_messaging_application_id.h
index 54f14807f2ce9650a0f4785128a9157ca985584e..e9da2ca9077056aacb6e9b33bfcf3ddcc46119d9 100644
--- a/chrome/browser/services/gcm/push_messaging_application_id.h
+++ b/chrome/browser/services/gcm/push_messaging_application_id.h
@@ -54,9 +54,11 @@ class PushMessagingApplicationId {
bool IsValid() const;
- const std::string app_id_guid;
- const GURL origin;
- const int64 service_worker_registration_id;
+ const std::string& app_id_guid() const { return app_id_guid_; }
+ const GURL& origin() const { return origin_; }
+ int64 service_worker_registration_id() const {
+ return service_worker_registration_id_;
+ }
private:
friend class PushMessagingApplicationIdTest;
@@ -67,6 +69,10 @@ class PushMessagingApplicationId {
PushMessagingApplicationId(const std::string& app_id_guid,
const GURL& origin,
int64 service_worker_registration_id);
+
+ const std::string app_id_guid_;
+ const GURL origin_;
+ const int64 service_worker_registration_id_;
};
} // namespace gcm
« no previous file with comments | « no previous file | chrome/browser/services/gcm/push_messaging_application_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698