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

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

Issue 1546613002: UT changes Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 11 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
« no previous file with comments | « components/gcm_driver/DEPS ('k') | components/gcm_driver/gcm_profile_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 scoped_ptr<ProfileIdentityProvider> identity_provider, 59 scoped_ptr<ProfileIdentityProvider> identity_provider,
60 scoped_ptr<GCMClientFactory> gcm_client_factory, 60 scoped_ptr<GCMClientFactory> gcm_client_factory,
61 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, 61 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner,
62 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, 62 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner,
63 scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); 63 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner);
64 #endif 64 #endif
65 ~GCMProfileService() override; 65 ~GCMProfileService() override;
66 66
67 // Returns whether GCM is enabled. 67 // Returns whether GCM is enabled.
68 static bool IsGCMEnabled(PrefService* prefs); 68 static bool IsGCMEnabled(PrefService* prefs);
69 69
70 // KeyedService: 70 // KeyedService:
71 void Shutdown() override; 71 void Shutdown() override;
72 72
73 // For testing purpose. 73 // For testing purpose.
(...skipping 17 matching lines...) Expand all
91 scoped_ptr<IdentityObserver> identity_observer_; 91 scoped_ptr<IdentityObserver> identity_observer_;
92 #endif 92 #endif
93 93
94 DISALLOW_COPY_AND_ASSIGN(GCMProfileService); 94 DISALLOW_COPY_AND_ASSIGN(GCMProfileService);
95 }; 95 };
96 96
97 } // namespace gcm 97 } // namespace gcm
98 98
99 #endif // COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ 99 #endif // COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_
100 100
OLDNEW
« no previous file with comments | « components/gcm_driver/DEPS ('k') | components/gcm_driver/gcm_profile_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698