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

Side by Side Diff: components/signin/core/browser/device_activity_fetcher.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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 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 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_DEVICE_ACTVITIY_FETCHER_H_ 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_DEVICE_ACTVITIY_FETCHER_H_
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_DEVICE_ACTVITIY_FETCHER_H_ 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_DEVICE_ACTVITIY_FETCHER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void StartFetchingGetTokenResponse(); 58 void StartFetchingGetTokenResponse();
59 void StartFetchingListDevices(); 59 void StartFetchingListDevices();
60 60
61 // Gaia fetcher used for acquiring an access token. 61 // Gaia fetcher used for acquiring an access token.
62 scoped_ptr<GaiaAuthFetcher> gaia_auth_fetcher_; 62 scoped_ptr<GaiaAuthFetcher> gaia_auth_fetcher_;
63 // URL Fetcher used for calling List Devices. 63 // URL Fetcher used for calling List Devices.
64 scoped_ptr<net::URLFetcher> url_fetcher_; 64 scoped_ptr<net::URLFetcher> url_fetcher_;
65 65
66 // If either fetcher fails, retry with exponential backoff. 66 // If either fetcher fails, retry with exponential backoff.
67 net::BackoffEntry fetcher_backoff_; 67 net::BackoffEntry fetcher_backoff_;
68 base::OneShotTimer<DeviceActivityFetcher> fetcher_timer_; 68 base::OneShotTimer fetcher_timer_;
69 int fetcher_retries_; 69 int fetcher_retries_;
70 70
71 std::string access_token_; 71 std::string access_token_;
72 std::string login_hint_; 72 std::string login_hint_;
73 73
74 SigninClient* signin_client_; // Weak pointer. 74 SigninClient* signin_client_; // Weak pointer.
75 Observer* observer_; 75 Observer* observer_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(DeviceActivityFetcher); 77 DISALLOW_COPY_AND_ASSIGN(DeviceActivityFetcher);
78 }; 78 };
79 79
80 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_DEVICE_ACTVITIY_FETCHER_H_ 80 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_DEVICE_ACTVITIY_FETCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698