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

Side by Side Diff: chrome/browser/services/gcm/gcm_profile_service.h

Issue 343743004: Implement a permission check for push. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SERVICES_GCM_GCM_PROFILE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SERVICES_GCM_GCM_PROFILE_SERVICE_H_
6 #define CHROME_BROWSER_SERVICES_GCM_GCM_PROFILE_SERVICE_H_ 6 #define CHROME_BROWSER_SERVICES_GCM_GCM_PROFILE_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 scoped_ptr<GCMClientFactory> gcm_client_factory); 43 scoped_ptr<GCMClientFactory> gcm_client_factory);
44 #endif 44 #endif
45 virtual ~GCMProfileService(); 45 virtual ~GCMProfileService();
46 46
47 // TODO(jianli): obsolete methods that are going to be removed soon. 47 // TODO(jianli): obsolete methods that are going to be removed soon.
48 void AddAppHandler(const std::string& app_id, GCMAppHandler* handler); 48 void AddAppHandler(const std::string& app_id, GCMAppHandler* handler);
49 void RemoveAppHandler(const std::string& app_id); 49 void RemoveAppHandler(const std::string& app_id);
50 void Register(const std::string& app_id, 50 void Register(const std::string& app_id,
51 const std::vector<std::string>& sender_ids, 51 const std::vector<std::string>& sender_ids,
52 const GCMDriver::RegisterCallback& callback); 52 const GCMDriver::RegisterCallback& callback);
53 Profile* profile() const { return profile_; }
Miguel Garcia 2014/06/19 17:49:28 Since after the rebase profile is now injected int
53 54
54 // KeyedService: 55 // KeyedService:
55 virtual void Shutdown() OVERRIDE; 56 virtual void Shutdown() OVERRIDE;
56 57
57 // Returns the user name if the profile is signed in or an empty string 58 // Returns the user name if the profile is signed in or an empty string
58 // otherwise. 59 // otherwise.
59 // TODO(jianli): To be removed when sign-in enforcement is dropped. 60 // TODO(jianli): To be removed when sign-in enforcement is dropped.
60 std::string SignedInUserName() const; 61 std::string SignedInUserName() const;
61 62
62 // For testing purpose. 63 // For testing purpose.
(...skipping 23 matching lines...) Expand all
86 class IdentityObserver; 87 class IdentityObserver;
87 scoped_ptr<IdentityObserver> identity_observer_; 88 scoped_ptr<IdentityObserver> identity_observer_;
88 #endif 89 #endif
89 90
90 DISALLOW_COPY_AND_ASSIGN(GCMProfileService); 91 DISALLOW_COPY_AND_ASSIGN(GCMProfileService);
91 }; 92 };
92 93
93 } // namespace gcm 94 } // namespace gcm
94 95
95 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_PROFILE_SERVICE_H_ 96 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_PROFILE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698