// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SYNC_ENGINE_NET_HTTP_POST_PROVIDER_H_ #define COMPONENTS_SYNC_ENGINE_NET_HTTP_POST_PROVIDER_H_ #include <string> #include "base/memory/ref_counted.h" #include "url/gurl.h" namespace syncer { // An interface the embedding application (e.g. Chromium) implements to provide // required HTTP POST functionality to the syncer backend. This interface is // designed for one-time use. You create one, use it, and create another if you // want to make a subsequent POST. // It is RefCountedThreadSafe because its implementations may PostTask to // background task runners, and thus need to stick around across context // switches, etc. class HttpPostProvider : public base::RefCountedThreadSafe<HttpPostProvider> { … }; } // namespace syncer #endif // COMPONENTS_SYNC_ENGINE_NET_HTTP_POST_PROVIDER_H_