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

Side by Side Diff: chrome/service/cloud_print/cloud_print_proxy.h

Issue 1899083002: Convert //chrome from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
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 CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory>
9 #include <string> 10 #include <string>
10 #include <vector> 11 #include <vector>
11 12
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "base/threading/non_thread_safe.h" 14 #include "base/threading/non_thread_safe.h"
15 #include "chrome/service/cloud_print/cloud_print_proxy_backend.h" 15 #include "chrome/service/cloud_print/cloud_print_proxy_backend.h"
16 #include "chrome/service/cloud_print/cloud_print_wipeout.h" 16 #include "chrome/service/cloud_print/cloud_print_wipeout.h"
17 17
18 class ServiceProcessPrefs; 18 class ServiceProcessPrefs;
19 19
20 namespace cloud_print { 20 namespace cloud_print {
21 21
22 struct CloudPrintProxyInfo; 22 struct CloudPrintProxyInfo;
23 23
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 // CloudPrintWipeout::Client implementation. 77 // CloudPrintWipeout::Client implementation.
78 void OnUnregisterPrintersComplete() override; 78 void OnUnregisterPrintersComplete() override;
79 79
80 protected: 80 protected:
81 void ShutdownBackend(); 81 void ShutdownBackend();
82 bool CreateBackend(); 82 bool CreateBackend();
83 83
84 // Our asynchronous backend to communicate with sync components living on 84 // Our asynchronous backend to communicate with sync components living on
85 // other threads. 85 // other threads.
86 scoped_ptr<CloudPrintProxyBackend> backend_; 86 std::unique_ptr<CloudPrintProxyBackend> backend_;
87 // This class does not own this. It is guaranteed to remain valid for the 87 // This class does not own this. It is guaranteed to remain valid for the
88 // lifetime of this class. 88 // lifetime of this class.
89 ServiceProcessPrefs* service_prefs_; 89 ServiceProcessPrefs* service_prefs_;
90 // This class does not own this. If non-NULL, It is guaranteed to remain 90 // This class does not own this. If non-NULL, It is guaranteed to remain
91 // valid for the lifetime of this class. 91 // valid for the lifetime of this class.
92 Client* client_; 92 Client* client_;
93 // The email address of the account used to authenticate to the Cloud Print 93 // The email address of the account used to authenticate to the Cloud Print
94 // service. 94 // service.
95 std::string user_email_; 95 std::string user_email_;
96 // This is set to true when the Cloud Print proxy is enabled and after 96 // This is set to true when the Cloud Print proxy is enabled and after
97 // successful authentication with the Cloud Print service. 97 // successful authentication with the Cloud Print service.
98 bool enabled_; 98 bool enabled_;
99 // This is a cleanup class for unregistering printers on proxy disable. 99 // This is a cleanup class for unregistering printers on proxy disable.
100 scoped_ptr<CloudPrintWipeout> wipeout_; 100 std::unique_ptr<CloudPrintWipeout> wipeout_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxy); 102 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxy);
103 }; 103 };
104 104
105 } // namespace cloud_print 105 } // namespace cloud_print
106 106
107 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ 107 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_auth.h ('k') | chrome/service/cloud_print/cloud_print_proxy_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698