OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_TEST_SYNC_TEST_HTTP_BRIDGE_FACTORY_H_ | 5 #ifndef CHROME_TEST_SYNC_TEST_HTTP_BRIDGE_FACTORY_H_ |
6 #define CHROME_TEST_SYNC_TEST_HTTP_BRIDGE_FACTORY_H_ | 6 #define CHROME_TEST_SYNC_TEST_HTTP_BRIDGE_FACTORY_H_ |
7 | 7 |
8 #if defined(BROWSER_SYNC) | |
9 | |
10 #include "chrome/browser/sync/engine/syncapi.h" | 8 #include "chrome/browser/sync/engine/syncapi.h" |
11 | 9 |
12 namespace browser_sync { | 10 namespace browser_sync { |
13 | 11 |
14 class TestHttpBridge : public sync_api::HttpPostProviderInterface { | 12 class TestHttpBridge : public sync_api::HttpPostProviderInterface { |
15 public: | 13 public: |
16 virtual void SetUserAgent(const char* user_agent) {} | 14 virtual void SetUserAgent(const char* user_agent) {} |
17 | 15 |
18 // Add additional headers to the request. | 16 // Add additional headers to the request. |
19 virtual void SetExtraRequestHeaders(const char * headers) {} | 17 virtual void SetExtraRequestHeaders(const char * headers) {} |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 ~TestHttpBridgeFactory() {} | 55 ~TestHttpBridgeFactory() {} |
58 | 56 |
59 virtual sync_api::HttpPostProviderInterface* Create() { | 57 virtual sync_api::HttpPostProviderInterface* Create() { |
60 return new TestHttpBridge(); | 58 return new TestHttpBridge(); |
61 } | 59 } |
62 virtual void Destroy(sync_api::HttpPostProviderInterface* http) {} | 60 virtual void Destroy(sync_api::HttpPostProviderInterface* http) {} |
63 }; | 61 }; |
64 | 62 |
65 } // namespace browser_sync | 63 } // namespace browser_sync |
66 | 64 |
67 | |
68 #endif // defined(BROWSER_SYNC) | |
69 #endif // CHROME_TEST_SYNC_TEST_HTTP_BRIDGE_FACTORY_H_ | 65 #endif // CHROME_TEST_SYNC_TEST_HTTP_BRIDGE_FACTORY_H_ |
OLD | NEW |