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

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

Issue 11515009: [sync] Componentize sync: Part 2: Add SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR Feedback Created 8 years 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 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_FACTORY_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_FACTORY_H_
6 #define SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_FACTORY_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_FACTORY_H_
7 7
8 #include "sync/base/sync_export.h"
9
8 namespace syncer { 10 namespace syncer {
9 11
10 class HttpPostProviderInterface; 12 class HttpPostProviderInterface;
11 13
12 // A factory to create HttpPostProviders to hide details about the 14 // A factory to create HttpPostProviders to hide details about the
13 // implementations and dependencies. 15 // implementations and dependencies.
14 // A factory instance itself should be owned by whomever uses it to create 16 // A factory instance itself should be owned by whomever uses it to create
15 // HttpPostProviders. 17 // HttpPostProviders.
16 class HttpPostProviderFactory { 18 class SYNC_EXPORT HttpPostProviderFactory {
17 public: 19 public:
18 virtual ~HttpPostProviderFactory() {} 20 virtual ~HttpPostProviderFactory() {}
19 21
20 // Obtain a new HttpPostProviderInterface instance, owned by caller. 22 // Obtain a new HttpPostProviderInterface instance, owned by caller.
21 virtual HttpPostProviderInterface* Create() = 0; 23 virtual HttpPostProviderInterface* Create() = 0;
22 24
23 // When the interface is no longer needed (ready to be cleaned up), clients 25 // When the interface is no longer needed (ready to be cleaned up), clients
24 // must call Destroy(). 26 // must call Destroy().
25 // This allows actual HttpPostProvider subclass implementations to be 27 // This allows actual HttpPostProvider subclass implementations to be
26 // reference counted, which is useful if a particular implementation uses 28 // reference counted, which is useful if a particular implementation uses
27 // multiple threads to serve network requests. 29 // multiple threads to serve network requests.
28 virtual void Destroy(HttpPostProviderInterface* http) = 0; 30 virtual void Destroy(HttpPostProviderInterface* http) = 0;
29 }; 31 };
30 32
31 } // namespace syncer 33 } // namespace syncer
32 34
33 #endif // SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_FACTORY_H_ 35 #endif // SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_FACTORY_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/http_bridge.h ('k') | sync/internal_api/public/internal_components_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698