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

Side by Side Diff: remoting/host/gcd_state_updater.cc

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « remoting/host/gcd_state_updater.h ('k') | remoting/host/gnubby_auth_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "remoting/host/gcd_state_updater.h" 5 #include "remoting/host/gcd_state_updater.h"
6 6
7 #include <stdint.h>
8
7 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
8 #include "base/strings/stringize_macros.h" 10 #include "base/strings/stringize_macros.h"
9 #include "base/time/time.h" 11 #include "base/time/time.h"
10 #include "base/values.h" 12 #include "base/values.h"
11 #include "remoting/base/constants.h" 13 #include "remoting/base/constants.h"
12 #include "remoting/base/logging.h" 14 #include "remoting/base/logging.h"
13 15
14 namespace remoting { 16 namespace remoting {
15 17
16 namespace { 18 namespace {
17 19
18 const int64 kTimerIntervalMinMs = 1000; 20 const int64_t kTimerIntervalMinMs = 1000;
19 const int64 kTimerIntervalMaxMs = 5 * 60 * 1000; // 5 minutes 21 const int64_t kTimerIntervalMaxMs = 5 * 60 * 1000; // 5 minutes
20 22
21 } // namespace 23 } // namespace
22 24
23 GcdStateUpdater::GcdStateUpdater( 25 GcdStateUpdater::GcdStateUpdater(
24 const base::Closure& on_update_successful_callback, 26 const base::Closure& on_update_successful_callback,
25 const base::Closure& on_unknown_host_id_error, 27 const base::Closure& on_unknown_host_id_error,
26 SignalStrategy* signal_strategy, 28 SignalStrategy* signal_strategy,
27 scoped_ptr<GcdRestClient> gcd_rest_client) 29 scoped_ptr<GcdRestClient> gcd_rest_client)
28 : on_update_successful_callback_(on_update_successful_callback), 30 : on_update_successful_callback_(on_update_successful_callback),
29 on_unknown_host_id_error_(on_unknown_host_id_error), 31 on_unknown_host_id_error_(on_unknown_host_id_error),
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 base_state->SetString("_hostVersion", STRINGIZE(VERSION)); 118 base_state->SetString("_hostVersion", STRINGIZE(VERSION));
117 patch->Set("base", base_state.Pass()); 119 patch->Set("base", base_state.Pass());
118 120
119 // Send the update to GCD. 121 // Send the update to GCD.
120 gcd_rest_client_->PatchState( 122 gcd_rest_client_->PatchState(
121 patch.Pass(), 123 patch.Pass(),
122 base::Bind(&GcdStateUpdater::OnPatchStateResult, base::Unretained(this))); 124 base::Bind(&GcdStateUpdater::OnPatchStateResult, base::Unretained(this)));
123 } 125 }
124 126
125 } // namespace remoting 127 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/gcd_state_updater.h ('k') | remoting/host/gnubby_auth_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698