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