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

Unified Diff: chrome/browser/sync/engine/net/server_connection_manager.h

Issue 3305003: New authorization framework for sync. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/engine/net/server_connection_manager.h
===================================================================
--- chrome/browser/sync/engine/net/server_connection_manager.h (revision 58702)
+++ chrome/browser/sync/engine/net/server_connection_manager.h (working copy)
@@ -213,8 +213,7 @@
ServerConnectionManager(const std::string& server,
int port,
bool use_ssl,
- const std::string& user_agent,
- const std::string& client_id);
+ const std::string& user_agent);
virtual ~ServerConnectionManager();
@@ -225,14 +224,6 @@
virtual bool PostBufferWithCachedAuth(const PostBufferParams* params,
ScopedServerStatusWatcher* watcher);
- // POSTS buffer_in and reads a response into buffer_out. Add a specific auth
- // token to http headers.
- //
- // Returns true if executed successfully.
- virtual bool PostBufferWithAuth(const PostBufferParams* params,
- const std::string& auth_token,
- 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);
@@ -289,6 +280,11 @@
return NULL; // For testing.
};
+ void set_client_id(const std::string& client_id) {
+ DCHECK(client_id_.empty());
+ client_id_.assign(client_id);
+ }
+
void set_auth_token(const std::string& auth_token) {
// TODO(chron): Consider adding a message loop check here.
AutoLock lock(auth_token_mutex_);
@@ -333,7 +329,7 @@
int sync_server_port_;
// The unique id of the user's client.
- const std::string client_id_;
+ std::string client_id_;
// The user-agent string for HTTP.
std::string user_agent_;

Powered by Google App Engine
This is Rietveld 408576698