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

Side by Side Diff: chrome/browser/android/seccomp_support_detector.h

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 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 CHROME_BROWSER_ANDROID_SECCOMP_SUPPORT_DETECTOR_H_ 5 #ifndef CHROME_BROWSER_ANDROID_SECCOMP_SUPPORT_DETECTOR_H_
6 #define CHROME_BROWSER_ANDROID_SECCOMP_SUPPORT_DETECTOR_H_ 6 #define CHROME_BROWSER_ANDROID_SECCOMP_SUPPORT_DETECTOR_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
10 11
11 // This class is used to report via UMA the Android kernel version and 12 // This class is used to report via UMA the Android kernel version and
12 // level of seccomp-bpf support. The operations are performed on the 13 // level of seccomp-bpf support. The operations are performed on the
13 // blocking thread pool. 14 // blocking thread pool.
14 class SeccompSupportDetector 15 class SeccompSupportDetector
15 : public base::RefCountedThreadSafe<SeccompSupportDetector> { 16 : public base::RefCountedThreadSafe<SeccompSupportDetector> {
16 public: 17 public:
17 // Starts the detection process. This should be called once per browser 18 // Starts the detection process. This should be called once per browser
18 // session. This is safe to call from any thread. 19 // session. This is safe to call from any thread.
(...skipping 10 matching lines...) Expand all
29 void DetectKernelVersion(); 30 void DetectKernelVersion();
30 31
31 // Called on the blocking thread pool. This tests whether the system 32 // Called on the blocking thread pool. This tests whether the system
32 // supports PR_SET_SECCOMP. 33 // supports PR_SET_SECCOMP.
33 void DetectSeccomp(); 34 void DetectSeccomp();
34 35
35 DISALLOW_COPY_AND_ASSIGN(SeccompSupportDetector); 36 DISALLOW_COPY_AND_ASSIGN(SeccompSupportDetector);
36 }; 37 };
37 38
38 #endif // CHROME_BROWSER_ANDROID_SECCOMP_SUPPORT_DETECTOR_H_ 39 #endif // CHROME_BROWSER_ANDROID_SECCOMP_SUPPORT_DETECTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/recently_closed_tabs_bridge.h ('k') | chrome/browser/android/shortcut_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698