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

Side by Side Diff: sync/engine/net/server_connection_manager.h

Issue 10038041: sync: Loop committing items without downloading updates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 SYNC_ENGINE_NET_SERVER_CONNECTION_MANAGER_H_ 5 #ifndef SYNC_ENGINE_NET_SERVER_CONNECTION_MANAGER_H_
6 #define SYNC_ENGINE_NET_SERVER_CONNECTION_MANAGER_H_ 6 #define SYNC_ENGINE_NET_SERVER_CONNECTION_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <string> 10 #include <string>
(...skipping 10 matching lines...) Expand all
21 namespace syncable { 21 namespace syncable {
22 class Directory; 22 class Directory;
23 } 23 }
24 24
25 namespace sync_pb { 25 namespace sync_pb {
26 class ClientToServerMessage; 26 class ClientToServerMessage;
27 } 27 }
28 28
29 namespace browser_sync { 29 namespace browser_sync {
30 30
31 class ClientToServerMessage;
32
33 static const int32 kUnsetResponseCode = -1; 31 static const int32 kUnsetResponseCode = -1;
34 static const int32 kUnsetContentLength = -1; 32 static const int32 kUnsetContentLength = -1;
35 static const int32 kUnsetPayloadLength = -1; 33 static const int32 kUnsetPayloadLength = -1;
36 34
37 // HttpResponse gathers the relevant output properties of an HTTP request. 35 // HttpResponse gathers the relevant output properties of an HTTP request.
38 // Depending on the value of the server_status code, response_code, and 36 // Depending on the value of the server_status code, response_code, and
39 // content_length may not be valid. 37 // content_length may not be valid.
40 struct HttpResponse { 38 struct HttpResponse {
41 enum ServerConnectionCode { 39 enum ServerConnectionCode {
42 // For uninitialized state. 40 // For uninitialized state.
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 // settings. 350 // settings.
353 bool FillMessageWithShareDetails(sync_pb::ClientToServerMessage* csm, 351 bool FillMessageWithShareDetails(sync_pb::ClientToServerMessage* csm,
354 syncable::Directory* manager, 352 syncable::Directory* manager,
355 const std::string& share); 353 const std::string& share);
356 354
357 std::ostream& operator<<(std::ostream& s, const struct HttpResponse& hr); 355 std::ostream& operator<<(std::ostream& s, const struct HttpResponse& hr);
358 356
359 } // namespace browser_sync 357 } // namespace browser_sync
360 358
361 #endif // SYNC_ENGINE_NET_SERVER_CONNECTION_MANAGER_H_ 359 #endif // SYNC_ENGINE_NET_SERVER_CONNECTION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698