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

Side by Side Diff: sync/internal_api/public/http_post_provider_interface.h

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
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 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 namespace csync { 11 namespace syncer {
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.
17 class HttpPostProviderInterface { 17 class HttpPostProviderInterface {
18 public: 18 public:
19 // Add additional headers to the request. 19 // Add additional headers to the request.
20 virtual void SetExtraRequestHeaders(const char* headers) = 0; 20 virtual void SetExtraRequestHeaders(const char* headers) = 0;
21 21
(...skipping 29 matching lines...) Expand all
51 const std::string& name) const = 0; 51 const std::string& name) const = 0;
52 52
53 // Abandon any pending POST and unblock caller in MakeSynchronousPost. 53 // Abandon any pending POST and unblock caller in MakeSynchronousPost.
54 // This must be safe to call from any thread. 54 // This must be safe to call from any thread.
55 virtual void Abort() = 0; 55 virtual void Abort() = 0;
56 56
57 protected: 57 protected:
58 virtual ~HttpPostProviderInterface() {} 58 virtual ~HttpPostProviderInterface() {}
59 }; 59 };
60 60
61 } // namespace csync 61 } // namespace syncer
62 62
63 #endif // SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_INTERFACE_H_ 63 #endif // SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_INTERFACE_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/http_post_provider_factory.h ('k') | sync/internal_api/public/read_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698