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

Side by Side Diff: ppapi/shared_impl/socket_option_data.h

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 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 unified diff | Download patch
« no previous file with comments | « ppapi/shared_impl/scoped_pp_var.cc ('k') | ppapi/shared_impl/socket_option_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef PPAPI_SHARED_IMPL_SOCKET_OPTION_DATA_H_ 5 #ifndef PPAPI_SHARED_IMPL_SOCKET_OPTION_DATA_H_
6 #define PPAPI_SHARED_IMPL_SOCKET_OPTION_DATA_H_ 6 #define PPAPI_SHARED_IMPL_SOCKET_OPTION_DATA_H_
7 7
8 #include "ppapi/c/pp_stdint.h" 8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/shared_impl/ppapi_shared_export.h" 9 #include "ppapi/shared_impl/ppapi_shared_export.h"
10 10
11 namespace ppapi { 11 namespace ppapi {
12 12
13 class PPAPI_SHARED_EXPORT SocketOptionData { 13 class PPAPI_SHARED_EXPORT SocketOptionData {
14 public: 14 public:
15 enum Type { 15 enum Type { TYPE_INVALID = 0, TYPE_BOOL = 1, TYPE_INT32 = 2 };
16 TYPE_INVALID = 0,
17 TYPE_BOOL = 1,
18 TYPE_INT32 = 2
19 };
20 16
21 SocketOptionData(); 17 SocketOptionData();
22 ~SocketOptionData(); 18 ~SocketOptionData();
23 19
24 Type GetType() const; 20 Type GetType() const;
25 21
26 bool GetBool(bool* out_value) const; 22 bool GetBool(bool* out_value) const;
27 bool GetInt32(int32_t* out_value) const; 23 bool GetInt32(int32_t* out_value) const;
28 24
29 void SetBool(bool value); 25 void SetBool(bool value);
30 void SetInt32(int32_t value); 26 void SetInt32(int32_t value);
31 27
32 private: 28 private:
33 Type type_; 29 Type type_;
34 int32_t value_; 30 int32_t value_;
35 }; 31 };
36 32
37 } // namespace ppapi 33 } // namespace ppapi
38 34
39 #endif // PPAPI_SHARED_IMPL_SOCKET_OPTION_DATA_H_ 35 #endif // PPAPI_SHARED_IMPL_SOCKET_OPTION_DATA_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/scoped_pp_var.cc ('k') | ppapi/shared_impl/socket_option_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698