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

Side by Side Diff: ppapi/tests/extensions/popup/module.cc

Issue 1414783002: Don't keep the lazy background page alive after a view with a Pepper plugin is closed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « ppapi/tests/extensions/popup/manifest.json ('k') | ppapi/tests/extensions/popup/popup.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ppapi/cpp/instance.h" 5 #include "ppapi/cpp/instance.h"
6 #include "ppapi/cpp/module.h" 6 #include "ppapi/cpp/module.h"
7 7
8 namespace { 8 namespace {
9 9
10 class Module : public pp::Module { 10 class Module : public pp::Module {
11 public: 11 public:
12 virtual pp::Instance* CreateInstance(PP_Instance instance) { 12 virtual pp::Instance* CreateInstance(PP_Instance instance) {
13 return new pp::Instance(instance); 13 return new pp::Instance(instance);
14 } 14 }
15 }; 15 };
16 16
17 } // namespace 17 } // namespace
18 18
19 namespace pp { 19 namespace pp {
20 20
21 Module* CreateModule() { 21 Module* CreateModule() {
22 return new ::Module(); 22 return new ::Module();
23 } 23 }
24 24
25 } // namespace pp 25 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/tests/extensions/popup/manifest.json ('k') | ppapi/tests/extensions/popup/popup.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698