Index: chrome/browser/sync/engine/net/server_connection_manager.h |
diff --git a/chrome/browser/sync/engine/net/server_connection_manager.h b/chrome/browser/sync/engine/net/server_connection_manager.h |
index 748c3f7f3e4ad0688297b3b662955c6e285001a7..418a1bcb490cf2d539a14a0aa630f1cfe0fc0185 100644 |
--- a/chrome/browser/sync/engine/net/server_connection_manager.h |
+++ b/chrome/browser/sync/engine/net/server_connection_manager.h |
@@ -202,20 +202,6 @@ class ServerConnectionManager { |
virtual bool PostBufferWithCachedAuth(PostBufferParams* params, |
ScopedServerStatusWatcher* watcher); |
- // Checks the time on the server. Returns false if the request failed. |time| |
- // is an out parameter that stores the value returned from the server. |
- virtual bool CheckTime(int32* out_time); |
- |
- // Returns true if sync_server_ is reachable. This method verifies that the |
- // server is pingable and that traffic can be sent to and from it. |
- virtual bool IsServerReachable(); |
- |
- // Returns true if user has been successfully authenticated. |
- virtual bool IsUserAuthenticated(); |
- |
- // Updates status and broadcasts events on change. |
- bool CheckServerReachable(); |
- |
void AddListener(ServerConnectionEventListener* listener); |
void RemoveListener(ServerConnectionEventListener* listener); |
@@ -230,14 +216,6 @@ class ServerConnectionManager { |
const std::string client_id() const { return client_id_; } |
- // This changes the server info used by the connection manager. This allows |
- // a single client instance to talk to different backing servers. This is |
- // typically called during / after authentication so that the server url |
- // can be a function of the user's login id. |
- void SetServerParameters(const std::string& server_url, |
- int port, |
- bool use_ssl); |
- |
// Returns the current server parameters in server_url, port and use_ssl. |
void GetServerParameters(std::string* server_url, |
int* port, |
@@ -281,6 +259,10 @@ class ServerConnectionManager { |
} |
} |
+ bool HasInvalidAuthToken() { |
+ return auth_token_.empty(); |
+ } |
+ |
const std::string auth_token() const { |
DCHECK(thread_checker_.CalledOnValidThread()); |
return auth_token_; |