Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: components/sync/core/http_post_provider_interface.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_SYNC_CORE_HTTP_POST_PROVIDER_INTERFACE_H_
6 #define SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_INTERFACE_H_ 6 #define COMPONENTS_SYNC_CORE_HTTP_POST_PROVIDER_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "sync/base/sync_export.h" 10 #include "components/sync/base/sync_export.h"
11 11
12 namespace syncer { 12 namespace syncer {
13 13
14 // An interface the embedding application (e.g. Chromium) implements to provide 14 // An interface the embedding application (e.g. Chromium) implements to provide
15 // required HTTP POST functionality to the syncer backend. This interface is 15 // required HTTP POST functionality to the syncer backend. This interface is
16 // designed for one-time use. You create one, use it, and create another if you 16 // designed for one-time use. You create one, use it, and create another if you
17 // want to make a subsequent POST. 17 // want to make a subsequent POST.
18 class SYNC_EXPORT HttpPostProviderInterface { 18 class SYNC_EXPORT HttpPostProviderInterface {
19 public: 19 public:
20 // Add additional headers to the request. 20 // Add additional headers to the request.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Abandon any pending POST and unblock caller in MakeSynchronousPost. 54 // Abandon any pending POST and unblock caller in MakeSynchronousPost.
55 // This must be safe to call from any thread. 55 // This must be safe to call from any thread.
56 virtual void Abort() = 0; 56 virtual void Abort() = 0;
57 57
58 protected: 58 protected:
59 virtual ~HttpPostProviderInterface() {} 59 virtual ~HttpPostProviderInterface() {}
60 }; 60 };
61 61
62 } // namespace syncer 62 } // namespace syncer
63 63
64 #endif // SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_INTERFACE_H_ 64 #endif // COMPONENTS_SYNC_CORE_HTTP_POST_PROVIDER_INTERFACE_H_
OLDNEW
« no previous file with comments | « components/sync/core/http_post_provider_factory.h ('k') | components/sync/core/internal_components_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698