summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-09 18:25:03 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-09 18:25:03 +0000
commit7cf4091e5e3eb7b3ee40c8fdc886226100b3a2e7 (patch)
tree423fdaae7c04f5ea304640618000675feb4e3443 /ppapi/cpp
parent57005ec7bf8cebf0e53a3e59dd9ca062ba1eb053 (diff)
downloadchromium_src-7cf4091e5e3eb7b3ee40c8fdc886226100b3a2e7.zip
chromium_src-7cf4091e5e3eb7b3ee40c8fdc886226100b3a2e7.tar.gz
chromium_src-7cf4091e5e3eb7b3ee40c8fdc886226100b3a2e7.tar.bz2
Start deinlining non-empty virtual methods. (This will be automatically checked
for in the future.) BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5574006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68746 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp')
-rw-r--r--ppapi/cpp/module.cc4
-rw-r--r--ppapi/cpp/module.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/ppapi/cpp/module.cc b/ppapi/cpp/module.cc
index d6adddc..220609d 100644
--- a/ppapi/cpp/module.cc
+++ b/ppapi/cpp/module.cc
@@ -144,6 +144,10 @@ Module::~Module() {
core_ = NULL;
}
+bool Module::Init() {
+ return true;
+}
+
const void* Module::GetPluginInterface(const char* interface_name) {
if (strcmp(interface_name, PPP_INSTANCE_INTERFACE) == 0)
return &instance_interface;
diff --git a/ppapi/cpp/module.h b/ppapi/cpp/module.h
index 308d3ce..f3e8af7 100644
--- a/ppapi/cpp/module.h
+++ b/ppapi/cpp/module.h
@@ -35,7 +35,7 @@ class Module {
// This function will be automatically called after the object is created.
// This is where you can put functions that rely on other parts of the API,
// now that the module has been created.
- virtual bool Init() { return true; }
+ virtual bool Init();
// Returns the internal module handle.
PP_Module pp_module() const { return pp_module_; }