| 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 "components/invalidation/impl/gcm_network_channel.h" | 5 #include "components/invalidation/impl/gcm_network_channel.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/base64url.h" | 9 #include "base/base64url.h" |
| 10 #include "base/i18n/time_formatting.h" | 10 #include "base/i18n/time_formatting.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/metrics/histogram_macros.h" | 12 #include "base/metrics/histogram_macros.h" |
| 13 #include "base/sha1.h" | 13 #include "base/sha1.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
| 18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 19 #include "components/data_use_measurement/core/data_use_user_data.h" | 19 #include "components/data_use_measurement/core/data_use_user_data.h" |
| 20 #include "components/invalidation/impl/gcm_network_channel_delegate.h" | 20 #include "components/invalidation/impl/gcm_network_channel_delegate.h" |
| 21 #include "google_apis/gaia/google_service_auth_error.h" | 21 #include "google_apis/gaia/google_service_auth_error.h" |
| 22 #include "net/http/http_status_code.h" | 22 #include "net/http/http_status_code.h" |
| 23 #include "net/url_request/url_fetcher.h" | 23 #include "net/url_request/url_fetcher.h" |
| 24 #include "net/url_request/url_request_status.h" | 24 #include "net/url_request/url_request_status.h" |
| 25 | 25 |
| 26 #if !defined(OS_ANDROID) | 26 #if !defined(OS_ANDROID) |
| 27 // channel_common.proto defines ANDROID constant that conflicts with Android | 27 // channel_common.proto defines ANDROID constant that conflicts with Android |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 ENUM_CASE(gcm::GCMClient::UNKNOWN_ERROR); | 436 ENUM_CASE(gcm::GCMClient::UNKNOWN_ERROR); |
| 437 ENUM_CASE(gcm::GCMClient::INVALID_PARAMETER); | 437 ENUM_CASE(gcm::GCMClient::INVALID_PARAMETER); |
| 438 ENUM_CASE(gcm::GCMClient::ASYNC_OPERATION_PENDING); | 438 ENUM_CASE(gcm::GCMClient::ASYNC_OPERATION_PENDING); |
| 439 ENUM_CASE(gcm::GCMClient::GCM_DISABLED); | 439 ENUM_CASE(gcm::GCMClient::GCM_DISABLED); |
| 440 } | 440 } |
| 441 NOTREACHED(); | 441 NOTREACHED(); |
| 442 return ""; | 442 return ""; |
| 443 } | 443 } |
| 444 | 444 |
| 445 } // namespace syncer | 445 } // namespace syncer |
| OLD | NEW |