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 COMPONENTS_BROWSER_SYNC_BROWSER_TEST_HTTP_BRIDGE_FACTORY_H_ | 5 #ifndef COMPONENTS_BROWSER_SYNC_TEST_HTTP_BRIDGE_FACTORY_H_ |
6 #define COMPONENTS_BROWSER_SYNC_BROWSER_TEST_HTTP_BRIDGE_FACTORY_H_ | 6 #define COMPONENTS_BROWSER_SYNC_TEST_HTTP_BRIDGE_FACTORY_H_ |
| 7 |
| 8 #include <string> |
7 | 9 |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
9 #include "components/sync/core/http_post_provider_factory.h" | 11 #include "components/sync/core/http_post_provider_factory.h" |
10 #include "components/sync/core/http_post_provider_interface.h" | 12 #include "components/sync/core/http_post_provider_interface.h" |
11 | 13 |
12 namespace browser_sync { | 14 namespace browser_sync { |
13 | 15 |
14 class TestHttpBridge : public syncer::HttpPostProviderInterface { | 16 class TestHttpBridge : public syncer::HttpPostProviderInterface { |
15 public: | 17 public: |
16 // Begin syncer::HttpPostProviderInterface implementation: | 18 // Begin syncer::HttpPostProviderInterface implementation: |
(...skipping 25 matching lines...) Expand all Loading... |
42 // syncer::HttpPostProviderFactory: | 44 // syncer::HttpPostProviderFactory: |
43 void Init( | 45 void Init( |
44 const std::string& user_agent, | 46 const std::string& user_agent, |
45 const syncer::BindToTrackerCallback& bind_to_tracker_callback) override; | 47 const syncer::BindToTrackerCallback& bind_to_tracker_callback) override; |
46 syncer::HttpPostProviderInterface* Create() override; | 48 syncer::HttpPostProviderInterface* Create() override; |
47 void Destroy(syncer::HttpPostProviderInterface* http) override; | 49 void Destroy(syncer::HttpPostProviderInterface* http) override; |
48 }; | 50 }; |
49 | 51 |
50 } // namespace browser_sync | 52 } // namespace browser_sync |
51 | 53 |
52 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_TEST_HTTP_BRIDGE_FACTORY_H_ | 54 #endif // COMPONENTS_BROWSER_SYNC_TEST_HTTP_BRIDGE_FACTORY_H_ |
OLD | NEW |