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

Side by Side Diff: remoting/client/plugin/pepper_module.cc

Issue 1101033002: Update {virtual,override} to follow C++11 style in remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « remoting/base/breakpad_win_unittest.cc ('k') | remoting/host/audio_capturer_win.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "ppapi/cpp/instance.h" 7 #include "ppapi/cpp/instance.h"
8 #include "ppapi/cpp/module.h" 8 #include "ppapi/cpp/module.h"
9 #include "remoting/client/plugin/chromoting_instance.h" 9 #include "remoting/client/plugin/chromoting_instance.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 12
13 class ChromotingModule : public pp::Module { 13 class ChromotingModule : public pp::Module {
14 protected: 14 protected:
15 virtual pp::Instance* CreateInstance(PP_Instance instance) override { 15 pp::Instance* CreateInstance(PP_Instance instance) override {
16 pp::Instance* result = new ChromotingInstance(instance); 16 pp::Instance* result = new ChromotingInstance(instance);
17 return result; 17 return result;
18 } 18 }
19 private: 19 private:
20 base::AtExitManager at_exit_manager_; 20 base::AtExitManager at_exit_manager_;
21 }; 21 };
22 22
23 } // namespace remoting 23 } // namespace remoting
24 24
25 namespace pp { 25 namespace pp {
26 26
27 // Factory function for your specialization of the Module object. 27 // Factory function for your specialization of the Module object.
28 Module* CreateModule() { 28 Module* CreateModule() {
29 return new remoting::ChromotingModule(); 29 return new remoting::ChromotingModule();
30 } 30 }
31 31
32 } // namespace pp 32 } // namespace pp
OLDNEW
« no previous file with comments | « remoting/base/breakpad_win_unittest.cc ('k') | remoting/host/audio_capturer_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698