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

Side by Side Diff: experimental/c_salt/npapi/scoped_npid_to_string_converter.cc

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 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 2010 The Native Client Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can
3 // be found in the LICENSE file.
4
5 #include "c_salt/npapi/scoped_npid_to_string_converter.h"
6
7 namespace c_salt {
8 namespace npapi {
9
10 ScopedNPIdToStringConverter::ScopedNPIdToStringConverter(
11 const NPIdentifier& np_id) : np_string_(NPN_UTF8FromIdentifier(np_id)) {
12 string_value_ = static_cast<const char*>(np_string_);
13 }
14
15 ScopedNPIdToStringConverter::~ScopedNPIdToStringConverter() {
16 NPN_MemFree(np_string_);
17 }
18
19 const std::string& ScopedNPIdToStringConverter::string_value() const {
20 return string_value_;
21 }
22
23 } // namespace npapi
24 } // namespace c_salt
OLDNEW
« no previous file with comments | « experimental/c_salt/npapi/scoped_npid_to_string_converter.h ('k') | experimental/c_salt/npapi/variant_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698