OLD | NEW |
1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/sync/internal_api/http_post_provider_interface.h" | 10 #include "sync/internal_api/http_post_provider_factory.h" |
11 #include "chrome/browser/sync/internal_api/http_post_provider_factory.h" | 11 #include "sync/internal_api/http_post_provider_interface.h" |
12 | 12 |
13 namespace browser_sync { | 13 namespace browser_sync { |
14 | 14 |
15 class TestHttpBridge : public sync_api::HttpPostProviderInterface { | 15 class TestHttpBridge : public sync_api::HttpPostProviderInterface { |
16 public: | 16 public: |
17 // Begin sync_api::HttpPostProviderInterface implementation: | 17 // Begin sync_api::HttpPostProviderInterface implementation: |
18 virtual void SetUserAgent(const char* user_agent) OVERRIDE {} | 18 virtual void SetUserAgent(const char* user_agent) OVERRIDE {} |
19 | 19 |
20 virtual void SetExtraRequestHeaders(const char * headers) OVERRIDE {} | 20 virtual void SetExtraRequestHeaders(const char * headers) OVERRIDE {} |
21 | 21 |
(...skipping 23 matching lines...) Expand all Loading... |
45 virtual ~TestHttpBridgeFactory(); | 45 virtual ~TestHttpBridgeFactory(); |
46 | 46 |
47 // sync_api::HttpPostProviderFactory: | 47 // sync_api::HttpPostProviderFactory: |
48 virtual sync_api::HttpPostProviderInterface* Create() OVERRIDE; | 48 virtual sync_api::HttpPostProviderInterface* Create() OVERRIDE; |
49 virtual void Destroy(sync_api::HttpPostProviderInterface* http) OVERRIDE; | 49 virtual void Destroy(sync_api::HttpPostProviderInterface* http) OVERRIDE; |
50 }; | 50 }; |
51 | 51 |
52 } // namespace browser_sync | 52 } // namespace browser_sync |
53 | 53 |
54 #endif // CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_ | 54 #endif // CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_ |
OLD | NEW |