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

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

Issue 511173002: Manual fixups for scoped_refptr operator T* removal in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
OLDNEW
1 // Copyright 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_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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 // Callback for updating network time. 221 // Callback for updating network time.
222 NetworkTimeUpdateCallback network_time_update_callback_; 222 NetworkTimeUpdateCallback network_time_update_callback_;
223 223
224 DISALLOW_COPY_AND_ASSIGN(HttpBridge); 224 DISALLOW_COPY_AND_ASSIGN(HttpBridge);
225 }; 225 };
226 226
227 class SYNC_EXPORT HttpBridgeFactory : public HttpPostProviderFactory, 227 class SYNC_EXPORT HttpBridgeFactory : public HttpPostProviderFactory,
228 public CancelationObserver { 228 public CancelationObserver {
229 public: 229 public:
230 HttpBridgeFactory( 230 HttpBridgeFactory(
231 net::URLRequestContextGetter* baseline_context_getter, 231 const scoped_refptr<net::URLRequestContextGetter>&
232 baseline_context_getter,
232 const NetworkTimeUpdateCallback& network_time_update_callback, 233 const NetworkTimeUpdateCallback& network_time_update_callback,
233 CancelationSignal* cancelation_signal); 234 CancelationSignal* cancelation_signal);
234 virtual ~HttpBridgeFactory(); 235 virtual ~HttpBridgeFactory();
235 236
236 // HttpPostProviderFactory: 237 // HttpPostProviderFactory:
237 virtual void Init(const std::string& user_agent) OVERRIDE; 238 virtual void Init(const std::string& user_agent) OVERRIDE;
238 virtual HttpPostProviderInterface* Create() OVERRIDE; 239 virtual HttpPostProviderInterface* Create() OVERRIDE;
239 virtual void Destroy(HttpPostProviderInterface* http) OVERRIDE; 240 virtual void Destroy(HttpPostProviderInterface* http) OVERRIDE;
240 241
241 // CancelationObserver implementation: 242 // CancelationObserver implementation:
(...skipping 19 matching lines...) Expand all
261 NetworkTimeUpdateCallback network_time_update_callback_; 262 NetworkTimeUpdateCallback network_time_update_callback_;
262 263
263 CancelationSignal* const cancelation_signal_; 264 CancelationSignal* const cancelation_signal_;
264 265
265 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); 266 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory);
266 }; 267 };
267 268
268 } // namespace syncer 269 } // namespace syncer
269 270
270 #endif // SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_H_ 271 #endif // SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_H_
OLDNEW
« no previous file with comments | « sync/internal_api/http_bridge_network_resources.cc ('k') | sync/internal_api/public/http_bridge_network_resources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698