OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |