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

Side by Side Diff: components/gcm_driver/gcm_profile_service.h

Issue 2111973002: Add support for GCM subtypes to desktop Instance ID implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid9push
Patch Set: Remove channel from product_category_for_subtypes, and address nits Created 4 years, 4 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
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 COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_
6 #define COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ 6 #define COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #if defined(OS_ANDROID) 49 #if defined(OS_ANDROID)
50 GCMProfileService( 50 GCMProfileService(
51 base::FilePath path, 51 base::FilePath path,
52 scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); 52 scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner);
53 #else 53 #else
54 GCMProfileService( 54 GCMProfileService(
55 PrefService* prefs, 55 PrefService* prefs,
56 base::FilePath path, 56 base::FilePath path,
57 net::URLRequestContextGetter* request_context, 57 net::URLRequestContextGetter* request_context,
58 version_info::Channel channel, 58 version_info::Channel channel,
59 const std::string& product_category_for_subtypes,
59 std::unique_ptr<ProfileIdentityProvider> identity_provider, 60 std::unique_ptr<ProfileIdentityProvider> identity_provider,
60 std::unique_ptr<GCMClientFactory> gcm_client_factory, 61 std::unique_ptr<GCMClientFactory> gcm_client_factory,
61 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, 62 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner,
62 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, 63 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner,
63 scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); 64 scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner);
64 #endif 65 #endif
65 ~GCMProfileService() override; 66 ~GCMProfileService() override;
66 67
67 // Returns whether GCM is enabled. 68 // Returns whether GCM is enabled.
68 static bool IsGCMEnabled(PrefService* prefs); 69 static bool IsGCMEnabled(PrefService* prefs);
(...skipping 22 matching lines...) Expand all
91 std::unique_ptr<IdentityObserver> identity_observer_; 92 std::unique_ptr<IdentityObserver> identity_observer_;
92 #endif 93 #endif
93 94
94 DISALLOW_COPY_AND_ASSIGN(GCMProfileService); 95 DISALLOW_COPY_AND_ASSIGN(GCMProfileService);
95 }; 96 };
96 97
97 } // namespace gcm 98 } // namespace gcm
98 99
99 #endif // COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ 100 #endif // COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_
100 101
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_driver_desktop_unittest.cc ('k') | components/gcm_driver/gcm_profile_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698