OLD | NEW |
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 Loading... |
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 |
OLD | NEW |