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

Side by Side Diff: chrome/browser/chromeos/system_logs/debug_daemon_log_source.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_DAEMON_LOG_SOURCE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_DAEMON_LOG_SOURCE_H_
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_DAEMON_LOG_SOURCE_H_ 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_DAEMON_LOG_SOURCE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const std::vector<base::FilePath>& profile_dirs, 50 const std::vector<base::FilePath>& profile_dirs,
51 SystemLogsResponse* response); 51 SystemLogsResponse* response);
52 52
53 // Merge the responses from ReadUserLogFiles into the main response dict and 53 // Merge the responses from ReadUserLogFiles into the main response dict and
54 // call RequestComplete to indicate that the user log files read is complete. 54 // call RequestComplete to indicate that the user log files read is complete.
55 void MergeResponse(SystemLogsResponse* response); 55 void MergeResponse(SystemLogsResponse* response);
56 56
57 // Sends the data to the callback_ when all the requests are completed 57 // Sends the data to the callback_ when all the requests are completed
58 void RequestCompleted(); 58 void RequestCompleted();
59 59
60 scoped_ptr<SystemLogsResponse> response_; 60 std::unique_ptr<SystemLogsResponse> response_;
61 SysLogsSourceCallback callback_; 61 SysLogsSourceCallback callback_;
62 int num_pending_requests_; 62 int num_pending_requests_;
63 bool scrub_; 63 bool scrub_;
64 base::WeakPtrFactory<DebugDaemonLogSource> weak_ptr_factory_; 64 base::WeakPtrFactory<DebugDaemonLogSource> weak_ptr_factory_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(DebugDaemonLogSource); 66 DISALLOW_COPY_AND_ASSIGN(DebugDaemonLogSource);
67 }; 67 };
68 68
69 69
70 } // namespace system_logs 70 } // namespace system_logs
71 71
72 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_DAEMON_LOG_SOURCE_H_ 72 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_DEBUG_DAEMON_LOG_SOURCE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/system/timezone_util.cc ('k') | chrome/browser/chromeos/system_logs/debug_daemon_log_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698