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 COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ |
6 #define COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ | 6 #define COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 30 matching lines...) Expand all Loading... |
41 class GCMAppHandler; | 41 class GCMAppHandler; |
42 class GCMClientFactory; | 42 class GCMClientFactory; |
43 class GCMDelayedTaskController; | 43 class GCMDelayedTaskController; |
44 | 44 |
45 // GCMDriver implementation for desktop and Chrome OS, using GCMClient. | 45 // GCMDriver implementation for desktop and Chrome OS, using GCMClient. |
46 class GCMDriverDesktop : public GCMDriver { | 46 class GCMDriverDesktop : public GCMDriver { |
47 public: | 47 public: |
48 GCMDriverDesktop( | 48 GCMDriverDesktop( |
49 scoped_ptr<GCMClientFactory> gcm_client_factory, | 49 scoped_ptr<GCMClientFactory> gcm_client_factory, |
50 const GCMClient::ChromeBuildInfo& chrome_build_info, | 50 const GCMClient::ChromeBuildInfo& chrome_build_info, |
| 51 const std::string& channel_status_request_url, |
| 52 const std::string& user_agent, |
51 PrefService* prefs, | 53 PrefService* prefs, |
52 const base::FilePath& store_path, | 54 const base::FilePath& store_path, |
53 const scoped_refptr<net::URLRequestContextGetter>& request_context, | 55 const scoped_refptr<net::URLRequestContextGetter>& request_context, |
54 const scoped_refptr<base::SequencedTaskRunner>& ui_thread, | 56 const scoped_refptr<base::SequencedTaskRunner>& ui_thread, |
55 const scoped_refptr<base::SequencedTaskRunner>& io_thread, | 57 const scoped_refptr<base::SequencedTaskRunner>& io_thread, |
56 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); | 58 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); |
57 virtual ~GCMDriverDesktop(); | 59 virtual ~GCMDriverDesktop(); |
58 | 60 |
59 // GCMDriver overrides: | 61 // GCMDriver overrides: |
60 virtual void Shutdown() override; | 62 virtual void Shutdown() override; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 171 |
170 // Used to pass a weak pointer to the IO worker. | 172 // Used to pass a weak pointer to the IO worker. |
171 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; | 173 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; |
172 | 174 |
173 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); | 175 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); |
174 }; | 176 }; |
175 | 177 |
176 } // namespace gcm | 178 } // namespace gcm |
177 | 179 |
178 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ | 180 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ |
OLD | NEW |