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

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

Issue 10699044: [Sync] Move sync/{internal_api,syncable} into syncer namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head 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_BRIDGE_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_H_
6 #define SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 11 matching lines...) Expand all
22 #include "sync/internal_api/public/http_post_provider_interface.h" 22 #include "sync/internal_api/public/http_post_provider_interface.h"
23 23
24 class MessageLoop; 24 class MessageLoop;
25 class HttpBridgeTest; 25 class HttpBridgeTest;
26 26
27 namespace net { 27 namespace net {
28 class HttpResponseHeaders; 28 class HttpResponseHeaders;
29 class URLFetcher; 29 class URLFetcher;
30 } 30 }
31 31
32 namespace browser_sync { 32 namespace syncer {
33 33
34 // A bridge between the syncer and Chromium HTTP layers. 34 // A bridge between the syncer and Chromium HTTP layers.
35 // Provides a way for the sync backend to use Chromium directly for HTTP 35 // Provides a way for the sync backend to use Chromium directly for HTTP
36 // requests rather than depending on a third party provider (e.g libcurl). 36 // requests rather than depending on a third party provider (e.g libcurl).
37 // This is a one-time use bridge. Create one for each request you want to make. 37 // This is a one-time use bridge. Create one for each request you want to make.
38 // It is RefCountedThreadSafe because it can PostTask to the io loop, and thus 38 // It is RefCountedThreadSafe because it can PostTask to the io loop, and thus
39 // needs to stick around across context switches, etc. 39 // needs to stick around across context switches, etc.
40 class HttpBridge : public base::RefCountedThreadSafe<HttpBridge>, 40 class HttpBridge : public base::RefCountedThreadSafe<HttpBridge>,
41 public syncer::HttpPostProviderInterface, 41 public syncer::HttpPostProviderInterface,
42 public net::URLFetcherDelegate { 42 public net::URLFetcherDelegate {
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // This request context is built on top of the baseline context and shares 220 // This request context is built on top of the baseline context and shares
221 // common components. 221 // common components.
222 HttpBridge::RequestContextGetter* GetRequestContextGetter(); 222 HttpBridge::RequestContextGetter* GetRequestContextGetter();
223 223
224 const scoped_refptr<HttpBridge::RequestContextGetter> 224 const scoped_refptr<HttpBridge::RequestContextGetter>
225 request_context_getter_; 225 request_context_getter_;
226 226
227 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); 227 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory);
228 }; 228 };
229 229
230 } // namespace browser_sync 230 } // namespace syncer
231 231
232 #endif // SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_H_ 232 #endif // SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/base_transaction.h ('k') | sync/internal_api/public/syncable/model_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698