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

Side by Side Diff: components/sync/engine/net/http_post_provider_interface.h

Issue 2408463002: [Sync] Move network-related code from core/ to engine/net/. (Closed)
Patch Set: Use SyncServerConnectionManager instead of ServerConnectionManagerImpl. Created 4 years, 2 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 COMPONENTS_SYNC_CORE_HTTP_POST_PROVIDER_INTERFACE_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_NET_HTTP_POST_PROVIDER_INTERFACE_H_
6 #define COMPONENTS_SYNC_CORE_HTTP_POST_PROVIDER_INTERFACE_H_ 6 #define COMPONENTS_SYNC_ENGINE_NET_HTTP_POST_PROVIDER_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace syncer { 10 namespace syncer {
11 11
12 // An interface the embedding application (e.g. Chromium) implements to provide 12 // An interface the embedding application (e.g. Chromium) implements to provide
13 // required HTTP POST functionality to the syncer backend. This interface is 13 // required HTTP POST functionality to the syncer backend. This interface is
14 // 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
15 // want to make a subsequent POST. 15 // want to make a subsequent POST.
16 class HttpPostProviderInterface { 16 class HttpPostProviderInterface {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Abandon any pending POST and unblock caller in MakeSynchronousPost. 52 // Abandon any pending POST and unblock caller in MakeSynchronousPost.
53 // This must be safe to call from any thread. 53 // This must be safe to call from any thread.
54 virtual void Abort() = 0; 54 virtual void Abort() = 0;
55 55
56 protected: 56 protected:
57 virtual ~HttpPostProviderInterface() {} 57 virtual ~HttpPostProviderInterface() {}
58 }; 58 };
59 59
60 } // namespace syncer 60 } // namespace syncer
61 61
62 #endif // COMPONENTS_SYNC_CORE_HTTP_POST_PROVIDER_INTERFACE_H_ 62 #endif // COMPONENTS_SYNC_ENGINE_NET_HTTP_POST_PROVIDER_INTERFACE_H_
OLDNEW
« no previous file with comments | « components/sync/engine/net/http_post_provider_factory.h ('k') | components/sync/engine/net/network_resources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698