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

Side by Side Diff: native_client_sdk/src/examples/api/vpn_provider/vpn_provider.cc

Issue 2337973003: Fix ppapi sample when built on windows. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 <queue> 5 #include <queue>
6 #include <sstream> 6 #include <sstream>
7 #include <string> 7 #include <string>
8 8
9 #include "ppapi/cpp/instance.h" 9 #include "ppapi/cpp/instance.h"
10 #include "ppapi/cpp/module.h" 10 #include "ppapi/cpp/module.h"
11 #include "ppapi/cpp/var.h" 11 #include "ppapi/cpp/var.h"
12 #include "ppapi/cpp/var_dictionary.h" 12 #include "ppapi/cpp/var_dictionary.h"
13 13
14 #include "vpn_provider_helper.h" 14 #include "vpn_provider_helper.h"
15 15
16 #ifdef WIN32
17 # undef PostMessage
18 #endif
19
16 class VpnProviderInstance : public pp::Instance { 20 class VpnProviderInstance : public pp::Instance {
17 public: 21 public:
18 explicit VpnProviderInstance(PP_Instance instance) 22 explicit VpnProviderInstance(PP_Instance instance)
19 : pp::Instance(instance), vpn_provider_helper_(this) { 23 : pp::Instance(instance), vpn_provider_helper_(this) {
20 vpn_provider_helper_.Init(); 24 vpn_provider_helper_.Init();
21 } 25 }
22 26
23 virtual ~VpnProviderInstance() {} 27 virtual ~VpnProviderInstance() {}
24 28
25 // Handles messages from Javascript 29 // Handles messages from Javascript
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 132 }
129 }; 133 };
130 134
131 namespace pp { 135 namespace pp {
132 136
133 Module* CreateModule() { 137 Module* CreateModule() {
134 return new VpnProviderModule(); 138 return new VpnProviderModule();
135 } 139 }
136 140
137 } // namespace pp 141 } // namespace pp
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698