OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/child/npapi/npobject_util.h" | 5 #include "content/child/npapi/npobject_util.h" |
6 | 6 |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "content/child/npapi/np_channel_base.h" | 8 #include "content/child/npapi/np_channel_base.h" |
9 #include "content/child/npapi/npobject_proxy.h" | 9 #include "content/child/npapi/npobject_proxy.h" |
10 #include "content/child/npapi/plugin_host.h" | 10 #include "content/child/npapi/plugin_host.h" |
11 #include "content/child/plugin_messages.h" | 11 #include "content/child/plugin_messages.h" |
12 #include "third_party/WebKit/public/web/WebBindings.h" | 12 #include "third_party/WebKit/public/web/WebBindings.h" |
13 #include "third_party/npapi/bindings/nphostapi.h" | 13 #include "third_party/npapi/bindings/nphostapi.h" |
14 #include "webkit/glue/webkit_glue.h" | 14 #include "webkit/glue/webkit_glue.h" |
15 | 15 |
16 using WebKit::WebBindings; | 16 using blink::WebBindings; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 // true if the current process is a plugin process, false otherwise. | 20 // true if the current process is a plugin process, false otherwise. |
21 static bool g_plugin_process; | 21 static bool g_plugin_process; |
22 | 22 |
23 namespace { | 23 namespace { |
24 // The next 7 functions are called by the plugin code when it's using the | 24 // The next 7 functions are called by the plugin code when it's using the |
25 // NPObject. Plugins always ignore the functions in NPClass (except allocate | 25 // NPObject. Plugins always ignore the functions in NPClass (except allocate |
26 // and deallocate), and instead just use the function pointers that were | 26 // and deallocate), and instead just use the function pointers that were |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 WebBindings::retainObject(result->value.objectValue); | 293 WebBindings::retainObject(result->value.objectValue); |
294 break; | 294 break; |
295 } | 295 } |
296 default: | 296 default: |
297 NOTREACHED(); | 297 NOTREACHED(); |
298 } | 298 } |
299 return true; | 299 return true; |
300 } | 300 } |
301 | 301 |
302 } // namespace content | 302 } // namespace content |
OLD | NEW |