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

Side by Side Diff: chrome/browser/sync/engine/syncer_proto_util.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_ 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_
6 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_ 6 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Helper functions for PostClientToServerMessage. 98 // Helper functions for PostClientToServerMessage.
99 99
100 // Verifies the store birthday, alerting/resetting as appropriate if there's a 100 // Verifies the store birthday, alerting/resetting as appropriate if there's a
101 // mismatch. Return false if the syncer should be stuck. 101 // mismatch. Return false if the syncer should be stuck.
102 static bool VerifyResponseBirthday(syncable::Directory* dir, 102 static bool VerifyResponseBirthday(syncable::Directory* dir,
103 const sync_pb::ClientToServerResponse* response); 103 const sync_pb::ClientToServerResponse* response);
104 104
105 // Post the message using the scm, and do some processing on the returned 105 // Post the message using the scm, and do some processing on the returned
106 // headers. Decode the server response. 106 // headers. Decode the server response.
107 static bool PostAndProcessHeaders(browser_sync::ServerConnectionManager* scm, 107 static bool PostAndProcessHeaders(browser_sync::ServerConnectionManager* scm,
108 browser_sync::AuthWatcher* authwatcher, 108 sessions::SyncSession* session,
109 const ClientToServerMessage& msg, 109 const ClientToServerMessage& msg,
110 sync_pb::ClientToServerResponse* response); 110 sync_pb::ClientToServerResponse* response);
111 111
112 friend class SyncerProtoUtilTest; 112 friend class SyncerProtoUtilTest;
113 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, AddRequestBirthday); 113 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, AddRequestBirthday);
114 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, PostAndProcessHeaders); 114 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, PostAndProcessHeaders);
115 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, VerifyResponseBirthday); 115 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, VerifyResponseBirthday);
116 116
117 DISALLOW_COPY_AND_ASSIGN(SyncerProtoUtil); 117 DISALLOW_COPY_AND_ASSIGN(SyncerProtoUtil);
118 }; 118 };
119 119
120 } // namespace browser_sync 120 } // namespace browser_sync
121 121
122 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_ 122 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698