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

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

Issue 10147003: [Sync] Move 'syncapi_core' and 'sync_unit_tests' targets to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Win update errors Created 8 years, 8 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) 2011 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 CHROME_BROWSER_SYNC_INTERNAL_API_HTTP_POST_PROVIDER_FACTORY_H_ 5 #ifndef SYNC_INTERNAL_API_HTTP_POST_PROVIDER_FACTORY_H_
6 #define CHROME_BROWSER_SYNC_INTERNAL_API_HTTP_POST_PROVIDER_FACTORY_H_ 6 #define SYNC_INTERNAL_API_HTTP_POST_PROVIDER_FACTORY_H_
7 #pragma once 7 #pragma once
8 8
9 namespace sync_api { 9 namespace sync_api {
10 10
11 class HttpPostProviderInterface; 11 class HttpPostProviderInterface;
12 12
13 // A factory to create HttpPostProviders to hide details about the 13 // A factory to create HttpPostProviders to hide details about the
14 // implementations and dependencies. 14 // implementations and dependencies.
15 // A factory instance itself should be owned by whomever uses it to create 15 // A factory instance itself should be owned by whomever uses it to create
16 // HttpPostProviders. 16 // HttpPostProviders.
17 class HttpPostProviderFactory { 17 class HttpPostProviderFactory {
18 public: 18 public:
19 virtual ~HttpPostProviderFactory() {} 19 virtual ~HttpPostProviderFactory() {}
20 20
21 // Obtain a new HttpPostProviderInterface instance, owned by caller. 21 // Obtain a new HttpPostProviderInterface instance, owned by caller.
22 virtual HttpPostProviderInterface* Create() = 0; 22 virtual HttpPostProviderInterface* Create() = 0;
23 23
24 // When the interface is no longer needed (ready to be cleaned up), clients 24 // When the interface is no longer needed (ready to be cleaned up), clients
25 // must call Destroy(). 25 // must call Destroy().
26 // This allows actual HttpPostProvider subclass implementations to be 26 // This allows actual HttpPostProvider subclass implementations to be
27 // reference counted, which is useful if a particular implementation uses 27 // reference counted, which is useful if a particular implementation uses
28 // multiple threads to serve network requests. 28 // multiple threads to serve network requests.
29 virtual void Destroy(HttpPostProviderInterface* http) = 0; 29 virtual void Destroy(HttpPostProviderInterface* http) = 0;
30 }; 30 };
31 31
32 } // namespace sync_api 32 } // namespace sync_api
33 33
34 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_HTTP_POST_PROVIDER_FACTORY_H_ 34 #endif // SYNC_INTERNAL_API_HTTP_POST_PROVIDER_FACTORY_H_
OLDNEW
« no previous file with comments | « sync/internal_api/debug_info_event_listener_unittest.cc ('k') | sync/internal_api/http_post_provider_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698