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

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

Issue 1464463004: Componentize Unit Test for gcm_profile_service Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 5 years 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 <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #else 52 #else
53 GCMProfileService( 53 GCMProfileService(
54 PrefService* prefs, 54 PrefService* prefs,
55 base::FilePath path, 55 base::FilePath path,
56 net::URLRequestContextGetter* request_context, 56 net::URLRequestContextGetter* request_context,
57 version_info::Channel channel, 57 version_info::Channel channel,
58 scoped_ptr<ProfileIdentityProvider> identity_provider, 58 scoped_ptr<ProfileIdentityProvider> identity_provider,
59 scoped_ptr<GCMClientFactory> gcm_client_factory, 59 scoped_ptr<GCMClientFactory> gcm_client_factory,
60 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, 60 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner,
61 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, 61 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner,
62 scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); 62 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner);
63 #endif 63 #endif
64 ~GCMProfileService() override; 64 ~GCMProfileService() override;
65 65
66 // Returns whether GCM is enabled. 66 // Returns whether GCM is enabled.
67 static bool IsGCMEnabled(PrefService* prefs); 67 static bool IsGCMEnabled(PrefService* prefs);
68 68
69 // KeyedService: 69 // KeyedService:
70 void Shutdown() override; 70 void Shutdown() override;
71 71
72 // For testing purpose. 72 // For testing purpose.
(...skipping 18 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

Powered by Google App Engine
This is Rietveld 408576698