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

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

Issue 18337010: Avoid std::string copying in GetFileNameInWhitelist. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 5 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698