| 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 #ifndef CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "sync/internal_api/public/http_post_provider_factory.h" | 9 #include "sync/internal_api/public/http_post_provider_factory.h" |
| 10 #include "sync/internal_api/public/http_post_provider_interface.h" | 10 #include "sync/internal_api/public/http_post_provider_interface.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 void Abort() override; | 33 void Abort() override; |
| 34 // End syncer::HttpPostProviderInterface implementation. | 34 // End syncer::HttpPostProviderInterface implementation. |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 class TestHttpBridgeFactory : public syncer::HttpPostProviderFactory { | 37 class TestHttpBridgeFactory : public syncer::HttpPostProviderFactory { |
| 38 public: | 38 public: |
| 39 TestHttpBridgeFactory(); | 39 TestHttpBridgeFactory(); |
| 40 ~TestHttpBridgeFactory() override; | 40 ~TestHttpBridgeFactory() override; |
| 41 | 41 |
| 42 // syncer::HttpPostProviderFactory: | 42 // syncer::HttpPostProviderFactory: |
| 43 void Init(const std::string& user_agent) override; | 43 void Init( |
| 44 const std::string& user_agent, |
| 45 const syncer::BindToTrackerCallback& bind_to_tracker_callback) override; |
| 44 syncer::HttpPostProviderInterface* Create() override; | 46 syncer::HttpPostProviderInterface* Create() override; |
| 45 void Destroy(syncer::HttpPostProviderInterface* http) override; | 47 void Destroy(syncer::HttpPostProviderInterface* http) override; |
| 46 }; | 48 }; |
| 47 | 49 |
| 48 } // namespace browser_sync | 50 } // namespace browser_sync |
| 49 | 51 |
| 50 #endif // CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_ | 52 #endif // CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_ |
| OLD | NEW |