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 #include "chrome/browser/services/gcm/gcm_desktop_utils.h" | 5 #include "chrome/browser/services/gcm/gcm_desktop_utils.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/sequenced_task_runner.h" | 8 #include "base/sequenced_task_runner.h" |
9 #include "base/threading/sequenced_worker_pool.h" | 9 #include "base/threading/sequenced_worker_pool.h" |
10 #include "chrome/common/chrome_version_info.h" | 10 #include "chrome/common/chrome_version_info.h" |
| 11 #include "components/gcm_driver/gcm_client.h" |
11 #include "components/gcm_driver/gcm_client_factory.h" | 12 #include "components/gcm_driver/gcm_client_factory.h" |
12 #include "components/gcm_driver/gcm_driver.h" | 13 #include "components/gcm_driver/gcm_driver.h" |
13 #include "components/gcm_driver/gcm_driver_desktop.h" | 14 #include "components/gcm_driver/gcm_driver_desktop.h" |
14 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
15 #include "google_apis/gcm/gcm_client.h" | |
16 | 16 |
17 namespace gcm { | 17 namespace gcm { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 GCMClient::ChromePlatform GetPlatform() { | 21 GCMClient::ChromePlatform GetPlatform() { |
22 #if defined(OS_WIN) | 22 #if defined(OS_WIN) |
23 return GCMClient::PLATFORM_WIN; | 23 return GCMClient::PLATFORM_WIN; |
24 #elif defined(OS_MACOSX) | 24 #elif defined(OS_MACOSX) |
25 return GCMClient::PLATFORM_MAC; | 25 return GCMClient::PLATFORM_MAC; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 store_path, | 89 store_path, |
90 request_context, | 90 request_context, |
91 content::BrowserThread::GetMessageLoopProxyForThread( | 91 content::BrowserThread::GetMessageLoopProxyForThread( |
92 content::BrowserThread::UI), | 92 content::BrowserThread::UI), |
93 content::BrowserThread::GetMessageLoopProxyForThread( | 93 content::BrowserThread::GetMessageLoopProxyForThread( |
94 content::BrowserThread::IO), | 94 content::BrowserThread::IO), |
95 blocking_task_runner)); | 95 blocking_task_runner)); |
96 } | 96 } |
97 | 97 |
98 } // namespace gcm | 98 } // namespace gcm |
OLD | NEW |