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

Side by Side Diff: sync/tools/testserver/chromiumsync.py

Issue 11958029: [Sync] Add support for proxy types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 7 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 """An implementation of the server side of the Chromium sync protocol. 5 """An implementation of the server side of the Chromium sync protocol.
6 6
7 The details of the protocol are described mostly by comments in the protocol 7 The details of the protocol are described mostly by comments in the protocol
8 buffer definition at chrome/browser/sync/protocol/sync.proto. 8 buffer definition at chrome/browser/sync/protocol/sync.proto.
9 """ 9 """
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 EXTENSIONS, 58 EXTENSIONS,
59 HISTORY_DELETE_DIRECTIVE, 59 HISTORY_DELETE_DIRECTIVE,
60 NIGORI, 60 NIGORI,
61 PASSWORD, 61 PASSWORD,
62 PREFERENCE, 62 PREFERENCE,
63 SEARCH_ENGINE, 63 SEARCH_ENGINE,
64 SESSION, 64 SESSION,
65 SYNCED_NOTIFICATION, 65 SYNCED_NOTIFICATION,
66 THEME, 66 THEME,
67 TYPED_URL, 67 TYPED_URL,
68 EXTENSION_SETTINGS) = range(21) 68 EXTENSION_SETTINGS,) = range(21)
69 69
70 # An enumeration on the frequency at which the server should send errors 70 # An enumeration on the frequency at which the server should send errors
71 # to the client. This would be specified by the url that triggers the error. 71 # to the client. This would be specified by the url that triggers the error.
72 # Note: This enum should be kept in the same order as the enum in sync_test.h. 72 # Note: This enum should be kept in the same order as the enum in sync_test.h.
73 SYNC_ERROR_FREQUENCY = ( 73 SYNC_ERROR_FREQUENCY = (
74 ERROR_FREQUENCY_NONE, 74 ERROR_FREQUENCY_NONE,
75 ERROR_FREQUENCY_ALWAYS, 75 ERROR_FREQUENCY_ALWAYS,
76 ERROR_FREQUENCY_TWO_THIRDS) = range(3) 76 ERROR_FREQUENCY_TWO_THIRDS) = range(3)
77 77
78 # Well-known server tag of the top level 'Google Chrome' folder. 78 # Well-known server tag of the top level 'Google Chrome' folder.
(...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 sending_nigori_node = False 1366 sending_nigori_node = False
1367 for entry in entries: 1367 for entry in entries:
1368 if entry.name == 'Nigori': 1368 if entry.name == 'Nigori':
1369 sending_nigori_node = True 1369 sending_nigori_node = True
1370 reply = update_response.entries.add() 1370 reply = update_response.entries.add()
1371 reply.CopyFrom(entry) 1371 reply.CopyFrom(entry)
1372 update_sieve.SaveProgress(new_timestamp, update_response) 1372 update_sieve.SaveProgress(new_timestamp, update_response)
1373 1373
1374 if update_request.need_encryption_key or sending_nigori_node: 1374 if update_request.need_encryption_key or sending_nigori_node:
1375 update_response.encryption_keys.extend(self.account.GetKeystoreKeys()) 1375 update_response.encryption_keys.extend(self.account.GetKeystoreKeys())
OLDNEW
« sync/syncable/model_type.cc ('K') | « sync/test/engine/mock_connection_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698