Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Unified Diff: ppapi/tests/extensions/load_unload/load_unload.cc

Issue 1117023002: Keep event page alive when there's some Pepper plugin on it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove DCHECK. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/tests/extensions/load_unload/ext_icon.png ('k') | ppapi/tests/extensions/load_unload/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/extensions/load_unload/load_unload.cc
diff --git a/ppapi/tests/extensions/load_unload/load_unload.cc b/ppapi/tests/extensions/load_unload/load_unload.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f16abbc24a0ca1edcb22228523b7bbeac8dda46b
--- /dev/null
+++ b/ppapi/tests/extensions/load_unload/load_unload.cc
@@ -0,0 +1,25 @@
+// Copyright 2015 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 "ppapi/cpp/instance.h"
+#include "ppapi/cpp/module.h"
+
+namespace {
+
+class Module : public pp::Module {
+ public:
+ virtual pp::Instance* CreateInstance(PP_Instance instance) {
+ return new pp::Instance(instance);
+ }
+};
+
+} // namespace
+
+namespace pp {
+
+Module* CreateModule() {
+ return new ::Module();
+}
+
+} // namespace pp
« no previous file with comments | « ppapi/tests/extensions/load_unload/ext_icon.png ('k') | ppapi/tests/extensions/load_unload/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698