| 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 "chrome/default_plugin/plugin_impl_aura.h" | 5 #include "chrome/default_plugin/plugin_impl_aura.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "chrome/common/chrome_plugin_messages.h" | 10 #include "chrome/common/chrome_plugin_messages.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 bool PluginInstallerImpl::Initialize(void* module_handle, | 24 bool PluginInstallerImpl::Initialize(void* module_handle, |
| 25 NPP instance, | 25 NPP instance, |
| 26 NPMIMEType mime_type, | 26 NPMIMEType mime_type, |
| 27 int16 argc, | 27 int16 argc, |
| 28 char* argn[], | 28 char* argn[], |
| 29 char* argv[]) { | 29 char* argv[]) { |
| 30 DVLOG(1) << __FUNCTION__ << " MIME Type : " << mime_type; | 30 DVLOG(1) << __FUNCTION__ << " MIME Type : " << mime_type; |
| 31 DCHECK(instance != NULL); | 31 DCHECK(instance != NULL); |
| 32 | 32 |
| 33 if (mime_type == NULL || strlen(mime_type) == 0) { | 33 if (mime_type == NULL || *mime_type == '\0') { |
| 34 DLOG(WARNING) << __FUNCTION__ << " Invalid parameters passed in"; | 34 DLOG(WARNING) << __FUNCTION__ << " Invalid parameters passed in"; |
| 35 NOTREACHED(); | 35 NOTREACHED(); |
| 36 return false; | 36 return false; |
| 37 } | 37 } |
| 38 | 38 |
| 39 return PluginInstallerBase::Initialize(module_handle, instance, mime_type, | 39 return PluginInstallerBase::Initialize(module_handle, instance, mime_type, |
| 40 argc, argn, argv); | 40 argc, argn, argv); |
| 41 } | 41 } |
| 42 | 42 |
| 43 bool PluginInstallerImpl::NPP_SetWindow(NPWindow* window_info) { | 43 bool PluginInstallerImpl::NPP_SetWindow(NPWindow* window_info) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 65 int32 buffer_length, void* buffer) { | 65 int32 buffer_length, void* buffer) { |
| 66 return true; | 66 return true; |
| 67 } | 67 } |
| 68 | 68 |
| 69 void PluginInstallerImpl::URLNotify(const char* url, NPReason reason) { | 69 void PluginInstallerImpl::URLNotify(const char* url, NPReason reason) { |
| 70 } | 70 } |
| 71 | 71 |
| 72 int16 PluginInstallerImpl::NPP_HandleEvent(void* event) { | 72 int16 PluginInstallerImpl::NPP_HandleEvent(void* event) { |
| 73 return 0; | 73 return 0; |
| 74 } | 74 } |
| OLD | NEW |