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

Side by Side Diff: ios/web/navigation/nscoder_util.h

Issue 988383002: Upstream various ios/web utilities and helpers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web-public-upstreaming
Patch Set: Created 5 years, 9 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) 2012 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 IOS_WEB_NAVIGATION_NSCODER_UTIL_H_
6 #define IOS_WEB_NAVIGATION_NSCODER_UTIL_H_
7
8 #import <Foundation/Foundation.h>
9
10 #include <string>
11
12 namespace web {
13 namespace nscoder_util {
14
15 // Archives a std::string in an Objective-C key archiver.
16 void EncodeString(NSCoder* coder, NSString* key, const std::string& string);
17
18 // Decode a std::string from an Objective-C key unarchiver.
19 std::string DecodeString(NSCoder* decoder, NSString* key);
20
21 } // namespace nscoder_util
22 } // namespace web
23
24 #endif // IOS_WEB_NAVIGATION_NSCODER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698