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 "webkit/plugins/ppapi/message_channel.h" | 5 #include "webkit/plugins/ppapi/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.h" | 12 #include "base/message_loop.h" |
13 #include "ppapi/shared_impl/var.h" | 13 #include "ppapi/shared_impl/var.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMMessageEvent.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMMessageEvent.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptVa
lue.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize
dScriptValue.h" |
22 #include "v8/include/v8.h" | 22 #include "v8/include/v8.h" |
23 #include "webkit/plugins/ppapi/npapi_glue.h" | 23 #include "webkit/plugins/ppapi/npapi_glue.h" |
24 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 24 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
25 | 25 |
26 using ppapi::StringVar; | 26 using ppapi::StringVar; |
27 using WebKit::WebBindings; | 27 using WebKit::WebBindings; |
28 using WebKit::WebElement; | 28 using WebKit::WebElement; |
29 using WebKit::WebDOMEvent; | 29 using WebKit::WebDOMEvent; |
30 using WebKit::WebDOMMessageEvent; | 30 using WebKit::WebDOMMessageEvent; |
31 using WebKit::WebPluginContainer; | 31 using WebKit::WebPluginContainer; |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 // SetPassthroughObject(passthrough_object()); | 381 // SetPassthroughObject(passthrough_object()); |
382 if (passthrough_object_) | 382 if (passthrough_object_) |
383 WebBindings::releaseObject(passthrough_object_); | 383 WebBindings::releaseObject(passthrough_object_); |
384 | 384 |
385 passthrough_object_ = passthrough; | 385 passthrough_object_ = passthrough; |
386 } | 386 } |
387 | 387 |
388 } // namespace ppapi | 388 } // namespace ppapi |
389 } // namespace webkit | 389 } // namespace webkit |
390 | 390 |
OLD | NEW |