| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DRIVER_H_ | 5 #ifndef CHROME_BROWSER_SERVICES_GCM_GCM_DRIVER_H_ |
| 6 #define CHROME_BROWSER_SERVICES_GCM_GCM_DRIVER_H_ | 6 #define CHROME_BROWSER_SERVICES_GCM_GCM_DRIVER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 GCMClient::Result result)> RegisterCallback; | 45 GCMClient::Result result)> RegisterCallback; |
| 46 typedef base::Callback<void(const std::string& message_id, | 46 typedef base::Callback<void(const std::string& message_id, |
| 47 GCMClient::Result result)> SendCallback; | 47 GCMClient::Result result)> SendCallback; |
| 48 typedef base::Callback<void(GCMClient::Result result)> UnregisterCallback; | 48 typedef base::Callback<void(GCMClient::Result result)> UnregisterCallback; |
| 49 typedef base::Callback<void(const GCMClient::GCMStatistics& stats)> | 49 typedef base::Callback<void(const GCMClient::GCMStatistics& stats)> |
| 50 GetGCMStatisticsCallback; | 50 GetGCMStatisticsCallback; |
| 51 | 51 |
| 52 GCMDriver( | 52 GCMDriver( |
| 53 scoped_ptr<GCMClientFactory> gcm_client_factory, | 53 scoped_ptr<GCMClientFactory> gcm_client_factory, |
| 54 scoped_ptr<IdentityProvider> identity_provider, | 54 scoped_ptr<IdentityProvider> identity_provider, |
| 55 const GCMClient::ChromeBuildInfo& chrome_build_info, |
| 55 const base::FilePath& store_path, | 56 const base::FilePath& store_path, |
| 56 const scoped_refptr<net::URLRequestContextGetter>& request_context, | 57 const scoped_refptr<net::URLRequestContextGetter>& request_context, |
| 57 const scoped_refptr<base::SequencedTaskRunner>& ui_thread, | 58 const scoped_refptr<base::SequencedTaskRunner>& ui_thread, |
| 58 const scoped_refptr<base::SequencedTaskRunner>& io_thread, | 59 const scoped_refptr<base::SequencedTaskRunner>& io_thread, |
| 59 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); | 60 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); |
| 60 virtual ~GCMDriver(); | 61 virtual ~GCMDriver(); |
| 61 | 62 |
| 62 // Enables/disables GCM service. | 63 // Enables/disables GCM service. |
| 63 void Enable(); | 64 void Enable(); |
| 64 void Disable(); | 65 void Disable(); |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 224 |
| 224 // Used to pass a weak pointer to the IO worker. | 225 // Used to pass a weak pointer to the IO worker. |
| 225 base::WeakPtrFactory<GCMDriver> weak_ptr_factory_; | 226 base::WeakPtrFactory<GCMDriver> weak_ptr_factory_; |
| 226 | 227 |
| 227 DISALLOW_COPY_AND_ASSIGN(GCMDriver); | 228 DISALLOW_COPY_AND_ASSIGN(GCMDriver); |
| 228 }; | 229 }; |
| 229 | 230 |
| 230 } // namespace gcm | 231 } // namespace gcm |
| 231 | 232 |
| 232 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_DRIVER_H_ | 233 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_DRIVER_H_ |
| OLD | NEW |