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 <stdio.h> | 5 #include <stdio.h> |
6 #include <string.h> | 6 #include <string.h> |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 EXPORT NPError API_CALL NP_Shutdown() { | 483 EXPORT NPError API_CALL NP_Shutdown() { |
484 VLOG(2) << "NP_Shutdown"; | 484 VLOG(2) << "NP_Shutdown"; |
485 delete g_at_exit_manager; | 485 delete g_at_exit_manager; |
486 g_at_exit_manager = NULL; | 486 g_at_exit_manager = NULL; |
487 return NPERR_NO_ERROR; | 487 return NPERR_NO_ERROR; |
488 } | 488 } |
489 | 489 |
490 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 490 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
491 EXPORT const char* API_CALL NP_GetMIMEDescription(void) { | 491 EXPORT const char* API_CALL NP_GetMIMEDescription(void) { |
492 VLOG(2) << "NP_GetMIMEDescription"; | 492 VLOG(2) << "NP_GetMIMEDescription"; |
493 return STRINGIZE(HOST_PLUGIN_MIME_TYPE) ":" | 493 return HOST_PLUGIN_MIME_TYPE ":" |
494 HOST_PLUGIN_NAME ":" | 494 HOST_PLUGIN_NAME ":" |
495 HOST_PLUGIN_DESCRIPTION; | 495 HOST_PLUGIN_DESCRIPTION; |
496 } | 496 } |
497 | 497 |
498 EXPORT NPError API_CALL NP_GetValue(void* npp, | 498 EXPORT NPError API_CALL NP_GetValue(void* npp, |
499 NPPVariable variable, | 499 NPPVariable variable, |
500 void* value) { | 500 void* value) { |
501 return GetValue((NPP)npp, variable, value); | 501 return GetValue((NPP)npp, variable, value); |
502 } | 502 } |
503 #endif | 503 #endif |
504 | 504 |
505 } // extern "C" | 505 } // extern "C" |
OLD | NEW |