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" | |
15 | 14 |
16 using blink::WebBindings; | 15 using blink::WebBindings; |
17 | 16 |
18 namespace content { | 17 namespace content { |
19 | 18 |
20 // true if the current process is a plugin process, false otherwise. | 19 // true if the current process is a plugin process, false otherwise. |
21 static bool g_plugin_process; | 20 static bool g_plugin_process; |
22 | 21 |
23 namespace { | 22 namespace { |
24 // The next 7 functions are called by the plugin code when it's using the | 23 // The next 7 functions are called by the plugin code when it's using the |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 WebBindings::retainObject(result->value.objectValue); | 292 WebBindings::retainObject(result->value.objectValue); |
294 break; | 293 break; |
295 } | 294 } |
296 default: | 295 default: |
297 NOTREACHED(); | 296 NOTREACHED(); |
298 } | 297 } |
299 return true; | 298 return true; |
300 } | 299 } |
301 | 300 |
302 } // namespace content | 301 } // namespace content |
OLD | NEW |