Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SANDBOX_LINUX_SERVICES_BROKER_PROCESS_UTILS_H_ | |
| 6 #define SANDBOX_LINUX_SERVICES_BROKER_PROCESS_UTILS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 #include <vector> | |
| 10 | |
| 11 namespace sandbox { | |
| 12 | |
|
jln (very slow on Chromium)
2013/07/08 22:36:51
Add some documentation about the class and about t
| |
| 13 class BrokerProcessUtils { | |
|
jln (very slow on Chromium)
2013/07/08 22:36:51
You absolutely need unit tests as well!
jln (very slow on Chromium)
2013/07/08 22:36:51
Let's name it something less specific, like Sandbo
Jorge Lucangeli Obes
2013/07/09 03:52:12
Done.
| |
| 14 public: | |
| 15 static const char* Find(const char* needle, | |
| 16 const std::vector<std::string>& haystack); | |
|
jln (very slow on Chromium)
2013/07/08 22:36:51
Don't forget to document these functions, even if
Jorge Lucangeli Obes
2013/07/09 03:52:12
Done.
| |
| 17 static int StrCmp(const char* s1, const char* s2); | |
| 18 }; | |
|
jln (very slow on Chromium)
2013/07/08 22:36:51
Don't forget DISALLOW_IMPLICIT_CONSTRUCTORS
Jorge Lucangeli Obes
2013/07/09 03:52:12
Done.
| |
| 19 | |
| 20 } // namespace sandbox | |
| 21 | |
| 22 #endif // SANDBOX_LINUX_SERVICES_BROKER_PROCESS_UTILS_H_ | |
| OLD | NEW |