| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "sync/test/fake_server/fake_server_network_resources.h" | 5 #include "sync/test/fake_server/fake_server_network_resources.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "sync/internal_api/public/base/cancelation_signal.h" | 9 #include "sync/internal_api/public/base/cancelation_signal.h" |
| 10 #include "sync/internal_api/public/http_post_provider_factory.h" | 10 #include "sync/internal_api/public/http_post_provider_factory.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 FakeServerNetworkResources::~FakeServerNetworkResources() {} | 24 FakeServerNetworkResources::~FakeServerNetworkResources() {} |
| 25 | 25 |
| 26 scoped_ptr<syncer::HttpPostProviderFactory> | 26 scoped_ptr<syncer::HttpPostProviderFactory> |
| 27 FakeServerNetworkResources::GetHttpPostProviderFactory( | 27 FakeServerNetworkResources::GetHttpPostProviderFactory( |
| 28 const scoped_refptr<net::URLRequestContextGetter>& baseline_context_getter, | 28 const scoped_refptr<net::URLRequestContextGetter>& baseline_context_getter, |
| 29 const NetworkTimeUpdateCallback& network_time_update_callback, | 29 const NetworkTimeUpdateCallback& network_time_update_callback, |
| 30 CancelationSignal* cancelation_signal) { | 30 CancelationSignal* cancelation_signal) { |
| 31 return make_scoped_ptr<syncer::HttpPostProviderFactory>( | 31 return make_scoped_ptr<syncer::HttpPostProviderFactory>( |
| 32 new FakeServerHttpPostProviderFactory( | 32 new FakeServerHttpPostProviderFactory( |
| 33 fake_server_, | 33 fake_server_, |
| 34 base::MessageLoop::current()->message_loop_proxy())); | 34 base::MessageLoop::current()->task_runner())); |
| 35 } | 35 } |
| 36 | 36 |
| 37 } // namespace fake_server | 37 } // namespace fake_server |
| OLD | NEW |