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

Unified Diff: ppapi/cpp/private/net_address_private.h

Issue 9307115: PPB_NetAddress_Private: add getter methods for sockaddr. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/c/private/ppb_net_address_private.h ('k') | ppapi/cpp/private/net_address_private.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/net_address_private.h
diff --git a/ppapi/cpp/private/net_address_private.h b/ppapi/cpp/private/net_address_private.h
index a2f8d880e5a7fe5a3e1b52197d26537868b6ad8c..fe4c9a728fa2da4b9de0696975cdb1e027f2c540 100644
--- a/ppapi/cpp/private/net_address_private.h
+++ b/ppapi/cpp/private/net_address_private.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -28,6 +28,10 @@ class NetAddressPrivate {
uint16_t port,
PP_NetAddress_Private* addr_out);
static void GetAnyAddress(bool is_ipv6, PP_NetAddress_Private* addr);
+ static uint16_t GetFamily(const PP_NetAddress_Private& addr);
+ static uint16_t GetPort(const PP_NetAddress_Private& addr);
+ static bool GetAddress(const PP_NetAddress_Private& addr,
+ void* address, uint16_t address_size);
};
} // namespace pp
« no previous file with comments | « ppapi/c/private/ppb_net_address_private.h ('k') | ppapi/cpp/private/net_address_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698