OLD | NEW |
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 <memory> |
8 #include <string> | 9 #include <string> |
9 | 10 |
10 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
11 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
12 #include "base/macros.h" | 13 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | |
14 #include "sync/base/sync_export.h" | 14 #include "sync/base/sync_export.h" |
15 #include "sync/engine/net/server_connection_manager.h" | 15 #include "sync/engine/net/server_connection_manager.h" |
16 | 16 |
17 namespace syncer { | 17 namespace syncer { |
18 | 18 |
19 class HttpPostProviderFactory; | 19 class HttpPostProviderFactory; |
20 class HttpPostProviderInterface; | 20 class HttpPostProviderInterface; |
21 | 21 |
22 // This provides HTTP Post functionality through the interface provided | 22 // This provides HTTP Post functionality through the interface provided |
23 // to the sync API by the application hosting the syncer backend. | 23 // to the sync API by the application hosting the syncer backend. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, | 70 FRIEND_TEST_ALL_PREFIXES(SyncAPIServerConnectionManagerTest, |
71 FailPostWithTimedOut); | 71 FailPostWithTimedOut); |
72 | 72 |
73 // A factory creating concrete HttpPostProviders for use whenever we need to | 73 // A factory creating concrete HttpPostProviders for use whenever we need to |
74 // issue a POST to sync servers. | 74 // issue a POST to sync servers. |
75 scoped_ptr<HttpPostProviderFactory> post_provider_factory_; | 75 std::unique_ptr<HttpPostProviderFactory> post_provider_factory_; |
76 | 76 |
77 DISALLOW_COPY_AND_ASSIGN(SyncAPIServerConnectionManager); | 77 DISALLOW_COPY_AND_ASSIGN(SyncAPIServerConnectionManager); |
78 }; | 78 }; |
79 | 79 |
80 } // namespace syncer | 80 } // namespace syncer |
81 | 81 |
82 #endif // SYNC_INTERNAL_API_SYNCAPI_SERVER_CONNECTION_MANAGER_H_ | 82 #endif // SYNC_INTERNAL_API_SYNCAPI_SERVER_CONNECTION_MANAGER_H_ |
OLD | NEW |