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

Side by Side Diff: sandbox/linux/services/thread_helpers.h

Issue 1124763003: Update from https://crrev.com/327068 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: update nacl, buildtools, fix display_change_notifier_unittest Created 5 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 SANDBOX_LINUX_SERVICES_THREAD_HELPERS_H_ 5 #ifndef SANDBOX_LINUX_SERVICES_THREAD_HELPERS_H_
6 #define SANDBOX_LINUX_SERVICES_THREAD_HELPERS_H_ 6 #define SANDBOX_LINUX_SERVICES_THREAD_HELPERS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/macros.h"
9 #include "sandbox/sandbox_export.h" 9 #include "sandbox/sandbox_export.h"
10 10
11 namespace base { class Thread; } 11 namespace base { class Thread; }
12 12
13 namespace sandbox { 13 namespace sandbox {
14 14
15 class SANDBOX_EXPORT ThreadHelpers { 15 class SANDBOX_EXPORT ThreadHelpers {
16 public: 16 public:
17 // Check whether the current process is single threaded. |proc_fd| 17 // Check whether the current process is single threaded. |proc_fd|
18 // must be a file descriptor to /proc/ and remains owned by the 18 // must be a file descriptor to /proc/ and remains owned by the
(...skipping 15 matching lines...) Expand all
34 34
35 static const char* GetAssertSingleThreadedErrorMessageForTests(); 35 static const char* GetAssertSingleThreadedErrorMessageForTests();
36 36
37 private: 37 private:
38 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadHelpers); 38 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadHelpers);
39 }; 39 };
40 40
41 } // namespace sandbox 41 } // namespace sandbox
42 42
43 #endif // SANDBOX_LINUX_SERVICES_THREAD_HELPERS_H_ 43 #endif // SANDBOX_LINUX_SERVICES_THREAD_HELPERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698