OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/sync/internal_api/http_post_provider_interface.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 virtual bool MakeSynchronousPost(int* error_code, | 28 virtual bool MakeSynchronousPost(int* error_code, |
29 int* response_code) OVERRIDE; | 29 int* response_code) OVERRIDE; |
30 | 30 |
31 virtual int GetResponseContentLength() const OVERRIDE; | 31 virtual int GetResponseContentLength() const OVERRIDE; |
32 | 32 |
33 virtual const char* GetResponseContent() const OVERRIDE; | 33 virtual const char* GetResponseContent() const OVERRIDE; |
34 | 34 |
35 virtual const std::string GetResponseHeaderValue( | 35 virtual const std::string GetResponseHeaderValue( |
36 const std::string&) const OVERRIDE; | 36 const std::string&) const OVERRIDE; |
37 | 37 |
38 virtual void Abort(); | 38 virtual void Abort() OVERRIDE; |
39 // End sync_api::HttpPostProviderInterface implementation. | 39 // End sync_api::HttpPostProviderInterface implementation. |
40 }; | 40 }; |
41 | 41 |
42 class TestHttpBridgeFactory : public sync_api::HttpPostProviderFactory { | 42 class TestHttpBridgeFactory : public sync_api::HttpPostProviderFactory { |
43 public: | 43 public: |
44 TestHttpBridgeFactory(); | 44 TestHttpBridgeFactory(); |
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 |