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

Side by Side Diff: components/invalidation/impl/gcm_network_channel.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 months 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 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 "base/base64url.h" 7 #include "base/base64url.h"
8 #include "base/i18n/time_formatting.h" 8 #include "base/i18n/time_formatting.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
11 #include "base/sha1.h" 11 #include "base/sha1.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
15 #include "base/thread_task_runner_handle.h" 15 #include "base/thread_task_runner_handle.h"
16 #include "build/build_config.h"
16 #include "components/data_use_measurement/core/data_use_user_data.h" 17 #include "components/data_use_measurement/core/data_use_user_data.h"
17 #include "components/invalidation/impl/gcm_network_channel_delegate.h" 18 #include "components/invalidation/impl/gcm_network_channel_delegate.h"
18 #include "google_apis/gaia/google_service_auth_error.h" 19 #include "google_apis/gaia/google_service_auth_error.h"
19 #include "net/http/http_status_code.h" 20 #include "net/http/http_status_code.h"
20 #include "net/url_request/url_fetcher.h" 21 #include "net/url_request/url_fetcher.h"
21 #include "net/url_request/url_request_status.h" 22 #include "net/url_request/url_request_status.h"
22 23
23 #if !defined(OS_ANDROID) 24 #if !defined(OS_ANDROID)
24 // channel_common.proto defines ANDROID constant that conflicts with Android 25 // channel_common.proto defines ANDROID constant that conflicts with Android
25 // build. At the same time TiclInvalidationService is not used on Android so it 26 // build. At the same time TiclInvalidationService is not used on Android so it
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 ENUM_CASE(gcm::GCMClient::UNKNOWN_ERROR); 434 ENUM_CASE(gcm::GCMClient::UNKNOWN_ERROR);
434 ENUM_CASE(gcm::GCMClient::INVALID_PARAMETER); 435 ENUM_CASE(gcm::GCMClient::INVALID_PARAMETER);
435 ENUM_CASE(gcm::GCMClient::ASYNC_OPERATION_PENDING); 436 ENUM_CASE(gcm::GCMClient::ASYNC_OPERATION_PENDING);
436 ENUM_CASE(gcm::GCMClient::GCM_DISABLED); 437 ENUM_CASE(gcm::GCMClient::GCM_DISABLED);
437 } 438 }
438 NOTREACHED(); 439 NOTREACHED();
439 return ""; 440 return "";
440 } 441 }
441 442
442 } // namespace syncer 443 } // namespace syncer
OLDNEW
« no previous file with comments | « components/invalidation/impl/gcm_network_channel.h ('k') | components/invalidation/impl/gcm_network_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698