OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/proxy/serialized_var.h" | 5 #include "ppapi/proxy/serialized_var.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ipc/ipc_message_utils.h" | 8 #include "ipc/ipc_message_utils.h" |
9 #include "ppapi/proxy/dispatcher.h" | 9 #include "ppapi/proxy/dispatcher.h" |
10 #include "ppapi/proxy/interface_proxy.h" | 10 #include "ppapi/proxy/interface_proxy.h" |
11 #include "ppapi/proxy/ppapi_param_traits.h" | 11 #include "ppapi/proxy/ppapi_param_traits.h" |
12 #include "ppapi/proxy/var_serialization_rules.h" | 12 #include "ppapi/proxy/var_serialization_rules.h" |
13 | 13 |
14 namespace pp { | 14 namespace ppapi { |
15 namespace proxy { | 15 namespace proxy { |
16 | 16 |
17 // SerializedVar::Inner -------------------------------------------------------- | 17 // SerializedVar::Inner -------------------------------------------------------- |
18 | 18 |
19 SerializedVar::Inner::Inner() | 19 SerializedVar::Inner::Inner() |
20 : serialization_rules_(NULL), | 20 : serialization_rules_(NULL), |
21 var_(PP_MakeUndefined()), | 21 var_(PP_MakeUndefined()), |
22 cleanup_mode_(CLEANUP_NONE), | 22 cleanup_mode_(CLEANUP_NONE), |
23 dispatcher_for_end_send_pass_ref_(NULL) { | 23 dispatcher_for_end_send_pass_ref_(NULL) { |
24 #ifndef NDEBUG | 24 #ifndef NDEBUG |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 string_var.value.as_id = 0; | 533 string_var.value.as_id = 0; |
534 inner_->ForceSetVarValueForTest(string_var); | 534 inner_->ForceSetVarValueForTest(string_var); |
535 inner_->ForceSetStringValueForTest(str); | 535 inner_->ForceSetStringValueForTest(str); |
536 } | 536 } |
537 | 537 |
538 SerializedVarTestReader::SerializedVarTestReader(const SerializedVar& var) | 538 SerializedVarTestReader::SerializedVarTestReader(const SerializedVar& var) |
539 : SerializedVar(var) { | 539 : SerializedVar(var) { |
540 } | 540 } |
541 | 541 |
542 } // namespace proxy | 542 } // namespace proxy |
543 } // namespace pp | 543 } // namespace ppapi |
544 | 544 |
OLD | NEW |