| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #define PEPPER_APIS_ENABLED 1 | 5 #define PEPPER_APIS_ENABLED 1 |
| 6 | 6 |
| 7 #include "chrome/renderer/webplugin_delegate_pepper.h" | 7 #include "chrome/renderer/webplugin_delegate_pepper.h" |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "app/gfx/blit.h" | 12 #include "app/gfx/blit.h" |
| 13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
| 14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 15 #include "base/process_util.h" | 15 #include "base/process_util.h" |
| 16 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
| 17 #include "base/stats_counters.h" | 17 #include "base/stats_counters.h" |
| 18 #include "base/string_util.h" | 18 #include "base/string_util.h" |
| 19 #include "chrome/common/render_messages.h" | 19 #include "chrome/common/render_messages.h" |
| 20 #include "chrome/renderer/render_thread.h" | 20 #include "chrome/renderer/render_thread.h" |
| 21 #include "webkit/api/public/WebInputEvent.h" | 21 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" |
| 22 #include "webkit/glue/glue_util.h" | 22 #include "webkit/glue/glue_util.h" |
| 23 #include "webkit/glue/pepper/pepper.h" | 23 #include "webkit/glue/pepper/pepper.h" |
| 24 #include "webkit/glue/plugins/plugin_constants_win.h" | 24 #include "webkit/glue/plugins/plugin_constants_win.h" |
| 25 #include "webkit/glue/plugins/plugin_instance.h" | 25 #include "webkit/glue/plugins/plugin_instance.h" |
| 26 #include "webkit/glue/plugins/plugin_lib.h" | 26 #include "webkit/glue/plugins/plugin_lib.h" |
| 27 #include "webkit/glue/plugins/plugin_list.h" | 27 #include "webkit/glue/plugins/plugin_list.h" |
| 28 #include "webkit/glue/plugins/plugin_stream_url.h" | 28 #include "webkit/glue/plugins/plugin_stream_url.h" |
| 29 #include "webkit/glue/webkit_glue.h" | 29 #include "webkit/glue/webkit_glue.h" |
| 30 | 30 |
| 31 using webkit_glue::WebPlugin; | 31 using webkit_glue::WebPlugin; |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 return NPERR_INVALID_PARAM; | 468 return NPERR_INVALID_PARAM; |
| 469 *handle = result.file_handle; | 469 *handle = result.file_handle; |
| 470 #elif defined(OS_POSIX) | 470 #elif defined(OS_POSIX) |
| 471 if (result.file_handle.fd == -1) | 471 if (result.file_handle.fd == -1) |
| 472 return NPERR_INVALID_PARAM; | 472 return NPERR_INVALID_PARAM; |
| 473 *reinterpret_cast<int*>(handle) = result.file_handle.fd; | 473 *reinterpret_cast<int*>(handle) = result.file_handle.fd; |
| 474 #endif | 474 #endif |
| 475 | 475 |
| 476 return NPERR_NO_ERROR; | 476 return NPERR_NO_ERROR; |
| 477 } | 477 } |
| OLD | NEW |