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

Side by Side Diff: components/sync_driver/sync_stopped_reporter.h

Issue 1907683003: Convert //components/sync_driver from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix, address feedback Created 4 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
« no previous file with comments | « components/sync_driver/sync_service.h ('k') | components/sync_driver/ui_data_type_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_SYNC_DRIVER_SYNC_STOPPED_REPORTER_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_STOPPED_REPORTER_H_
6 #define COMPONENTS_SYNC_DRIVER_SYNC_STOPPED_REPORTER_H_ 6 #define COMPONENTS_SYNC_DRIVER_SYNC_STOPPED_REPORTER_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/callback.h" 11 #include "base/callback.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "base/timer/timer.h" 13 #include "base/timer/timer.h"
14 #include "net/url_request/url_fetcher.h" 14 #include "net/url_request/url_fetcher.h"
15 #include "net/url_request/url_fetcher_delegate.h" 15 #include "net/url_request/url_fetcher_delegate.h"
16 #include "net/url_request/url_request_context_getter.h" 16 #include "net/url_request/url_request_context_getter.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 namespace browser_sync { 19 namespace browser_sync {
20 20
21 // Manages informing the sync server that sync has been disabled. 21 // Manages informing the sync server that sync has been disabled.
22 // An implementation of URLFetcherDelegate was needed in order to 22 // An implementation of URLFetcherDelegate was needed in order to
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // The URL for the sync server's event RPC. 63 // The URL for the sync server's event RPC.
64 const GURL sync_event_url_; 64 const GURL sync_event_url_;
65 65
66 // The user agent for the browser. 66 // The user agent for the browser.
67 const std::string user_agent_; 67 const std::string user_agent_;
68 68
69 // Stored to simplify the API; needed for URLFetcher::Create(). 69 // Stored to simplify the API; needed for URLFetcher::Create().
70 scoped_refptr<net::URLRequestContextGetter> request_context_; 70 scoped_refptr<net::URLRequestContextGetter> request_context_;
71 71
72 // The current URLFetcher. Null unless a request is in progress. 72 // The current URLFetcher. Null unless a request is in progress.
73 scoped_ptr<net::URLFetcher> fetcher_; 73 std::unique_ptr<net::URLFetcher> fetcher_;
74 74
75 // A callback for request completion or timeout. 75 // A callback for request completion or timeout.
76 ResultCallback callback_; 76 ResultCallback callback_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(SyncStoppedReporter); 78 DISALLOW_COPY_AND_ASSIGN(SyncStoppedReporter);
79 }; 79 };
80 80
81 } // namespace browser_sync 81 } // namespace browser_sync
82 82
83 #endif // COMPONENTS_SYNC_DRIVER_SYNC_STOPPED_REPORTER_H_ 83 #endif // COMPONENTS_SYNC_DRIVER_SYNC_STOPPED_REPORTER_H_
OLDNEW
« no previous file with comments | « components/sync_driver/sync_service.h ('k') | components/sync_driver/ui_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698