| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/default_plugin/plugin_impl_aura.h" | |
| 6 | |
| 7 #include "base/file_util.h" | |
| 8 #include "base/path_service.h" | |
| 9 #include "base/string_util.h" | |
| 10 #include "chrome/common/chrome_plugin_messages.h" | |
| 11 #include "chrome/default_plugin/plugin_main.h" | |
| 12 #include "content/common/child_thread.h" | |
| 13 #include "content/public/common/content_constants.h" | |
| 14 #include "googleurl/src/gurl.h" | |
| 15 #include "grit/webkit_strings.h" | |
| 16 #include "unicode/locid.h" | |
| 17 #include "webkit/plugins/npapi/default_plugin_shared.h" | |
| 18 | |
| 19 PluginInstallerImpl::PluginInstallerImpl(int16 mode) {} | |
| 20 | |
| 21 PluginInstallerImpl::~PluginInstallerImpl() { | |
| 22 } | |
| 23 | |
| 24 bool PluginInstallerImpl::Initialize(void* module_handle, | |
| 25 NPP instance, | |
| 26 NPMIMEType mime_type, | |
| 27 int16 argc, | |
| 28 char* argn[], | |
| 29 char* argv[]) { | |
| 30 DVLOG(1) << __FUNCTION__ << " MIME Type : " << mime_type; | |
| 31 DCHECK(instance != NULL); | |
| 32 | |
| 33 if (mime_type == NULL || strlen(mime_type) == 0) { | |
| 34 DLOG(WARNING) << __FUNCTION__ << " Invalid parameters passed in"; | |
| 35 NOTREACHED(); | |
| 36 return false; | |
| 37 } | |
| 38 | |
| 39 PluginInstallerBase::SetRoutingIds(argc, argn, argv); | |
| 40 return true; | |
| 41 } | |
| 42 | |
| 43 bool PluginInstallerImpl::NPP_SetWindow(NPWindow* window_info) { | |
| 44 NOTIMPLEMENTED(); | |
| 45 return true; | |
| 46 } | |
| 47 | |
| 48 void PluginInstallerImpl::Shutdown() { | |
| 49 } | |
| 50 | |
| 51 void PluginInstallerImpl::NewStream(NPStream* stream) { | |
| 52 NOTIMPLEMENTED(); | |
| 53 } | |
| 54 | |
| 55 void PluginInstallerImpl::DestroyStream(NPStream* stream, NPError reason) { | |
| 56 NOTIMPLEMENTED(); | |
| 57 } | |
| 58 | |
| 59 bool PluginInstallerImpl::WriteReady(NPStream* stream) { | |
| 60 NOTIMPLEMENTED(); | |
| 61 return false; | |
| 62 } | |
| 63 | |
| 64 int32 PluginInstallerImpl::Write(NPStream* stream, int32 offset, | |
| 65 int32 buffer_length, void* buffer) { | |
| 66 return true; | |
| 67 } | |
| 68 | |
| 69 void PluginInstallerImpl::URLNotify(const char* url, NPReason reason) { | |
| 70 } | |
| 71 | |
| 72 int16 PluginInstallerImpl::NPP_HandleEvent(void* event) { | |
| 73 return 0; | |
| 74 } | |
| OLD | NEW |