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

Side by Side Diff: google_apis/gcm/engine/heartbeat_manager.cc

Issue 1968043003: Fix include path for moved thread_task_runner_handle.h header in google_apis/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: Created 4 years, 7 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 "google_apis/gcm/engine/heartbeat_manager.h" 5 #include "google_apis/gcm/engine/heartbeat_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/power_monitor/power_monitor.h" 12 #include "base/power_monitor/power_monitor.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "base/timer/timer.h" 15 #include "base/timer/timer.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "google_apis/gcm/protocol/mcs.pb.h" 17 #include "google_apis/gcm/protocol/mcs.pb.h"
18 #include "net/base/network_change_notifier.h" 18 #include "net/base/network_change_notifier.h"
19 19
20 namespace gcm { 20 namespace gcm {
21 21
22 namespace { 22 namespace {
23 // The default heartbeat when on a mobile or unknown network . 23 // The default heartbeat when on a mobile or unknown network .
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 interval <= max_heartbeat_interval; 294 interval <= max_heartbeat_interval;
295 } 295 }
296 296
297 void HeartbeatManager::ResetConnection( 297 void HeartbeatManager::ResetConnection(
298 ConnectionFactory::ConnectionResetReason reason) { 298 ConnectionFactory::ConnectionResetReason reason) {
299 Stop(); 299 Stop();
300 trigger_reconnect_callback_.Run(reason); 300 trigger_reconnect_callback_.Run(reason);
301 } 301 }
302 302
303 } // namespace gcm 303 } // namespace gcm
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/gcm_store_impl_unittest.cc ('k') | google_apis/gcm/engine/heartbeat_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698