OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/pepper/message_channel.h" | 5 #include "content/renderer/pepper/message_channel.h" |
6 | 6 |
7 #include <cstdlib> | 7 #include <cstdlib> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "content/renderer/pepper/host_array_buffer_var.h" | 13 #include "content/renderer/pepper/host_array_buffer_var.h" |
14 #include "content/renderer/pepper/npapi_glue.h" | 14 #include "content/renderer/pepper/npapi_glue.h" |
15 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 15 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
16 #include "content/renderer/pepper/plugin_module.h" | 16 #include "content/renderer/pepper/plugin_module.h" |
17 #include "content/renderer/pepper/v8_var_converter.h" | 17 #include "content/renderer/pepper/v8_var_converter.h" |
18 #include "ppapi/shared_impl/ppapi_globals.h" | 18 #include "ppapi/shared_impl/ppapi_globals.h" |
19 #include "ppapi/shared_impl/scoped_pp_var.h" | 19 #include "ppapi/shared_impl/scoped_pp_var.h" |
20 #include "ppapi/shared_impl/var.h" | 20 #include "ppapi/shared_impl/var.h" |
21 #include "ppapi/shared_impl/var_tracker.h" | 21 #include "ppapi/shared_impl/var_tracker.h" |
22 #include "third_party/WebKit/public/web/WebBindings.h" | 22 #include "third_party/WebKit/public/web/WebBindings.h" |
23 #include "third_party/WebKit/public/web/WebDocument.h" | 23 #include "third_party/WebKit/public/web/WebDocument.h" |
24 #include "third_party/WebKit/public/web/WebDOMMessageEvent.h" | 24 #include "third_party/WebKit/public/web/WebDOMMessageEvent.h" |
25 #include "third_party/WebKit/public/web/WebElement.h" | 25 #include "third_party/WebKit/public/web/WebElement.h" |
26 #include "third_party/WebKit/public/web/WebFrame.h" | 26 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
27 #include "third_party/WebKit/public/web/WebNode.h" | 27 #include "third_party/WebKit/public/web/WebNode.h" |
28 #include "third_party/WebKit/public/web/WebPluginContainer.h" | 28 #include "third_party/WebKit/public/web/WebPluginContainer.h" |
29 #include "third_party/WebKit/public/web/WebSerializedScriptValue.h" | 29 #include "third_party/WebKit/public/web/WebSerializedScriptValue.h" |
30 #include "v8/include/v8.h" | 30 #include "v8/include/v8.h" |
31 | 31 |
32 using ppapi::ArrayBufferVar; | 32 using ppapi::ArrayBufferVar; |
33 using ppapi::PpapiGlobals; | 33 using ppapi::PpapiGlobals; |
34 using ppapi::StringVar; | 34 using ppapi::StringVar; |
35 using blink::WebBindings; | 35 using blink::WebBindings; |
36 using blink::WebElement; | 36 using blink::WebElement; |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 return true; | 570 return true; |
571 } | 571 } |
572 return false; | 572 return false; |
573 } | 573 } |
574 | 574 |
575 void MessageChannel::SetReadOnlyProperty(PP_Var key, PP_Var value) { | 575 void MessageChannel::SetReadOnlyProperty(PP_Var key, PP_Var value) { |
576 internal_properties_[PPVarToNPIdentifier(key)] = ppapi::ScopedPPVar(value); | 576 internal_properties_[PPVarToNPIdentifier(key)] = ppapi::ScopedPPVar(value); |
577 } | 577 } |
578 | 578 |
579 } // namespace content | 579 } // namespace content |
OLD | NEW |