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

Side by Side Diff: sync/internal_api/syncapi_server_connection_manager.h

Issue 1553433002: [Sync] Sync should run canary cycle after any network related error (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android test Created 4 years, 11 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_INTERNAL_API_SYNCAPI_SERVER_CONNECTION_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_SYNCAPI_SERVER_CONNECTION_MANAGER_H_
6 #define SYNC_INTERNAL_API_SYNCAPI_SERVER_CONNECTION_MANAGER_H_ 6 #define SYNC_INTERNAL_API_SYNCAPI_SERVER_CONNECTION_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 ~SyncAPIServerConnectionManager() override; 60 ~SyncAPIServerConnectionManager() override;
61 61
62 // ServerConnectionManager overrides. 62 // ServerConnectionManager overrides.
63 Connection* MakeConnection() override; 63 Connection* MakeConnection() override;
64 64
65 private: 65 private:
66 FRIEND_TEST_ALL_PREFIXES(SyncAPIServerConnectionManagerTest, 66 FRIEND_TEST_ALL_PREFIXES(SyncAPIServerConnectionManagerTest,
67 VeryEarlyAbortPost); 67 VeryEarlyAbortPost);
68 FRIEND_TEST_ALL_PREFIXES(SyncAPIServerConnectionManagerTest, EarlyAbortPost); 68 FRIEND_TEST_ALL_PREFIXES(SyncAPIServerConnectionManagerTest, EarlyAbortPost);
69 FRIEND_TEST_ALL_PREFIXES(SyncAPIServerConnectionManagerTest, AbortPost); 69 FRIEND_TEST_ALL_PREFIXES(SyncAPIServerConnectionManagerTest, AbortPost);
70 FRIEND_TEST_ALL_PREFIXES(SyncAPIServerConnectionManagerTest,
71 FailPostWithTimedOut);
70 72
71 // A factory creating concrete HttpPostProviders for use whenever we need to 73 // A factory creating concrete HttpPostProviders for use whenever we need to
72 // issue a POST to sync servers. 74 // issue a POST to sync servers.
73 scoped_ptr<HttpPostProviderFactory> post_provider_factory_; 75 scoped_ptr<HttpPostProviderFactory> post_provider_factory_;
74 76
75 DISALLOW_COPY_AND_ASSIGN(SyncAPIServerConnectionManager); 77 DISALLOW_COPY_AND_ASSIGN(SyncAPIServerConnectionManager);
76 }; 78 };
77 79
78 } // namespace syncer 80 } // namespace syncer
79 81
80 #endif // SYNC_INTERNAL_API_SYNCAPI_SERVER_CONNECTION_MANAGER_H_ 82 #endif // SYNC_INTERNAL_API_SYNCAPI_SERVER_CONNECTION_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/http_bridge.cc ('k') | sync/internal_api/syncapi_server_connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698