OLD | NEW |
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 #include "chrome/browser/sync/internal_api/syncapi_server_connection_manager.h" | 5 #include "sync/internal_api/syncapi_server_connection_manager.h" |
6 | 6 |
7 #include "chrome/browser/sync/internal_api/http_post_provider_factory.h" | |
8 #include "chrome/browser/sync/internal_api/http_post_provider_interface.h" | |
9 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
10 #include "net/http/http_status_code.h" | 8 #include "net/http/http_status_code.h" |
| 9 #include "sync/internal_api/http_post_provider_factory.h" |
| 10 #include "sync/internal_api/http_post_provider_interface.h" |
11 | 11 |
12 using browser_sync::HttpResponse; | 12 using browser_sync::HttpResponse; |
13 | 13 |
14 namespace sync_api { | 14 namespace sync_api { |
15 | 15 |
16 SyncAPIBridgedConnection::SyncAPIBridgedConnection( | 16 SyncAPIBridgedConnection::SyncAPIBridgedConnection( |
17 browser_sync::ServerConnectionManager* scm, | 17 browser_sync::ServerConnectionManager* scm, |
18 HttpPostProviderFactory* factory) | 18 HttpPostProviderFactory* factory) |
19 : Connection(scm), factory_(factory) { | 19 : Connection(scm), factory_(factory) { |
20 post_provider_ = factory_->Create(); | 20 post_provider_ = factory_->Create(); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 } | 98 } |
99 | 99 |
100 SyncAPIServerConnectionManager::~SyncAPIServerConnectionManager() {} | 100 SyncAPIServerConnectionManager::~SyncAPIServerConnectionManager() {} |
101 | 101 |
102 browser_sync::ServerConnectionManager::Connection* | 102 browser_sync::ServerConnectionManager::Connection* |
103 SyncAPIServerConnectionManager::MakeConnection() { | 103 SyncAPIServerConnectionManager::MakeConnection() { |
104 return new SyncAPIBridgedConnection(this, post_provider_factory_.get()); | 104 return new SyncAPIBridgedConnection(this, post_provider_factory_.get()); |
105 } | 105 } |
106 | 106 |
107 } // namespace sync_api | 107 } // namespace sync_api |
OLD | NEW |