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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/path.cc

Issue 19717004: [NaCl SDK] Add nacl_io and sdk_util namespaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad copyright in mount_mem 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 | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 #include "nacl_io/path.h" 5 #include "nacl_io/path.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <string.h> 8 #include <string.h>
9 #include <string> 9 #include <string>
10 10
11 namespace nacl_io {
12
11 Path::Path() {} 13 Path::Path() {}
12 14
13 Path::Path(const Path& path) { 15 Path::Path(const Path& path) {
14 paths_ = path.paths_; 16 paths_ = path.paths_;
15 } 17 }
16 18
17 Path::Path(const std::string& path) { 19 Path::Path(const std::string& path) {
18 Set(path); 20 Set(path);
19 } 21 }
20 22
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 197
196 Path& Path::operator =(const Path& p) { 198 Path& Path::operator =(const Path& p) {
197 paths_ = p.paths_; 199 paths_ = p.paths_;
198 return *this; 200 return *this;
199 } 201 }
200 202
201 Path& Path::operator =(const std::string& p) { 203 Path& Path::operator =(const std::string& p) {
202 return Set(p); 204 return Set(p);
203 } 205 }
204 206
207 } // namespace nacl_io
208
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/path.h ('k') | native_client_sdk/src/libraries/nacl_io/pepper_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698