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

Side by Side Diff: chrome/browser/chromeos/system/syslogs_provider.h

Issue 137263007: Move CancelableTaskTracker to //base/task/CancelableTaskTracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move to base/task/cancelable_task_tracker* Created 6 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SYSLOGS_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_SYSLOGS_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_SYSLOGS_PROVIDER_H_ 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_SYSLOGS_PROVIDER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "chrome/common/cancelable_task_tracker.h" 12 #include "base/task/cancelable_task_tracker.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 namespace system { 15 namespace system {
16 16
17 // Maximum number of bytes in system info log chunk to be still included 17 // Maximum number of bytes in system info log chunk to be still included
18 // in product specific data. 18 // in product specific data.
19 extern const size_t kFeedbackMaxLength; 19 extern const size_t kFeedbackMaxLength;
20 20
21 // Maximum number of lines in system info log chunk to be still included 21 // Maximum number of lines in system info log chunk to be still included
22 // in product specific data. 22 // in product specific data.
(...skipping 14 matching lines...) Expand all
37 enum SyslogsContext { 37 enum SyslogsContext {
38 SYSLOGS_FEEDBACK, 38 SYSLOGS_FEEDBACK,
39 SYSLOGS_SYSINFO, 39 SYSLOGS_SYSINFO,
40 SYSLOGS_NETWORK, 40 SYSLOGS_NETWORK,
41 SYSLOGS_DEFAULT 41 SYSLOGS_DEFAULT
42 }; 42 };
43 43
44 // Request system logs. Read happens on the FILE thread and callback is 44 // Request system logs. Read happens on the FILE thread and callback is
45 // called on the thread this is called from. Logs are owned by callback 45 // called on the thread this is called from. Logs are owned by callback
46 // function (use delete when done with them). 46 // function (use delete when done with them).
47 // Call CancelableTaskTracker::TryCancel() with the returned task ID to cancel 47 // Call base::CancelableTaskTracker::TryCancel() with the returned
48 // task ID to cancel
48 // task and callback. 49 // task and callback.
49 virtual CancelableTaskTracker::TaskId RequestSyslogs( 50 virtual base::CancelableTaskTracker::TaskId RequestSyslogs(
50 bool compress_logs, 51 bool compress_logs,
51 SyslogsContext context, 52 SyslogsContext context,
52 const ReadCompleteCallback& callback, 53 const ReadCompleteCallback& callback,
53 CancelableTaskTracker* tracker) = 0; 54 base::CancelableTaskTracker* tracker) = 0;
54 55
55 protected: 56 protected:
56 virtual ~SyslogsProvider() {} 57 virtual ~SyslogsProvider() {}
57 }; 58 };
58 59
59 } // namespace system 60 } // namespace system
60 } // namespace chromeos 61 } // namespace chromeos
61 62
62 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_SYSLOGS_PROVIDER_H_ 63 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_SYSLOGS_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/device_status_collector.h ('k') | chrome/browser/chromeos/system/syslogs_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698