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 SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_INTERFACE_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_INTERFACE_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_INTERFACE_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_INTERFACE_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 namespace syncer { | 10 namespace syncer { |
12 | 11 |
13 // An interface the embedding application (e.g. Chromium) implements to provide | 12 // An interface the embedding application (e.g. Chromium) implements to provide |
14 // required HTTP POST functionality to the syncer backend. This interface is | 13 // 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 | 14 // designed for one-time use. You create one, use it, and create another if you |
16 // want to make a subsequent POST. | 15 // want to make a subsequent POST. |
17 class HttpPostProviderInterface { | 16 class HttpPostProviderInterface { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // This must be safe to call from any thread. | 53 // This must be safe to call from any thread. |
55 virtual void Abort() = 0; | 54 virtual void Abort() = 0; |
56 | 55 |
57 protected: | 56 protected: |
58 virtual ~HttpPostProviderInterface() {} | 57 virtual ~HttpPostProviderInterface() {} |
59 }; | 58 }; |
60 | 59 |
61 } // namespace syncer | 60 } // namespace syncer |
62 | 61 |
63 #endif // SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_INTERFACE_H_ | 62 #endif // SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_INTERFACE_H_ |
OLD | NEW |