| 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_INTERNAL_API_HTTP_POST_PROVIDER_INTERFACE_H_ | 5 #ifndef SYNC_INTERNAL_API_HTTP_POST_PROVIDER_INTERFACE_H_ |
| 6 #define CHROME_BROWSER_SYNC_INTERNAL_API_HTTP_POST_PROVIDER_INTERFACE_H_ | 6 #define SYNC_INTERNAL_API_HTTP_POST_PROVIDER_INTERFACE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 namespace sync_api { | 11 namespace sync_api { |
| 12 | 12 |
| 13 // An interface the embedding application (e.g. Chromium) implements to provide | 13 // An interface the embedding application (e.g. Chromium) implements to provide |
| 14 // required HTTP POST functionality to the syncer backend. This interface is | 14 // required HTTP POST functionality to the syncer backend. This interface is |
| 15 // designed for one-time use. You create one, use it, and create another if you | 15 // designed for one-time use. You create one, use it, and create another if you |
| 16 // want to make a subsequent POST. | 16 // want to make a subsequent POST. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual const std::string GetResponseHeaderValue( | 56 virtual const std::string GetResponseHeaderValue( |
| 57 const std::string& name) const = 0; | 57 const std::string& name) const = 0; |
| 58 | 58 |
| 59 // Abandon any pending POST and unblock caller in MakeSynchronousPost. | 59 // Abandon any pending POST and unblock caller in MakeSynchronousPost. |
| 60 // This must be safe to call from any thread. | 60 // This must be safe to call from any thread. |
| 61 virtual void Abort() = 0; | 61 virtual void Abort() = 0; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace sync_api | 64 } // namespace sync_api |
| 65 | 65 |
| 66 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_HTTP_POST_PROVIDER_INTERFACE_H_ | 66 #endif // SYNC_INTERNAL_API_HTTP_POST_PROVIDER_INTERFACE_H_ |
| OLD | NEW |