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

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

Issue 3078005: Rename ChromotingPlugin -> ChromotingInstance to be more consistent with... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "remoting/client/plugin/pepper_entrypoints.h" 5 #include "remoting/client/plugin/pepper_entrypoints.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "remoting/client/plugin/chromoting_plugin.h" 8 #include "remoting/client/plugin/chromoting_instance.h"
9 #include "third_party/ppapi/c/pp_errors.h" 9 #include "third_party/ppapi/c/pp_errors.h"
10 #include "third_party/ppapi/c/pp_instance.h" 10 #include "third_party/ppapi/c/pp_instance.h"
11 #include "third_party/ppapi/c/pp_module.h" 11 #include "third_party/ppapi/c/pp_module.h"
12 #include "third_party/ppapi/c/ppb_instance.h" 12 #include "third_party/ppapi/c/ppb_instance.h"
13 #include "third_party/ppapi/cpp/instance.h" 13 #include "third_party/ppapi/cpp/instance.h"
14 #include "third_party/ppapi/cpp/module.h" 14 #include "third_party/ppapi/cpp/module.h"
15 15
16 static pp::Module* g_module_singleton = NULL; 16 static pp::Module* g_module_singleton = NULL;
17 17
18 namespace pp { 18 namespace pp {
19 19
20 Module* Module::Get() { 20 Module* Module::Get() {
21 return g_module_singleton; 21 return g_module_singleton;
22 } 22 }
23 23
24 } // namespace pp 24 } // namespace pp
25 25
26 namespace remoting { 26 namespace remoting {
27 27
28 class ChromotingModule : public pp::Module { 28 class ChromotingModule : public pp::Module {
29 protected: 29 protected:
30 virtual ChromotingPlugin* CreateInstance(PP_Instance instance) { 30 virtual ChromotingInstance* CreateInstance(PP_Instance instance) {
31 return new ChromotingPlugin(instance); 31 return new ChromotingInstance(instance);
32 } 32 }
33 }; 33 };
34 34
35 // Implementation of Global PPP functions --------------------------------- 35 // Implementation of Global PPP functions ---------------------------------
36 int32_t PPP_InitializeModule(PP_Module module_id, 36 int32_t PPP_InitializeModule(PP_Module module_id,
37 PPB_GetInterface get_browser_interface) { 37 PPB_GetInterface get_browser_interface) {
38 ChromotingModule* module = new ChromotingModule(); 38 ChromotingModule* module = new ChromotingModule();
39 if (!module) 39 if (!module)
40 return PP_ERROR_FAILED; 40 return PP_ERROR_FAILED;
41 41
(...skipping 11 matching lines...) Expand all
53 g_module_singleton = NULL; 53 g_module_singleton = NULL;
54 } 54 }
55 55
56 const void* PPP_GetInterface(const char* interface_name) { 56 const void* PPP_GetInterface(const char* interface_name) {
57 if (!pp::Module::Get()) 57 if (!pp::Module::Get())
58 return NULL; 58 return NULL;
59 return pp::Module::Get()->GetInstanceInterface(interface_name); 59 return pp::Module::Get()->GetInstanceInterface(interface_name);
60 } 60 }
61 61
62 } // namespace remoting 62 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/plugin/chromoting_scriptable_object.cc ('k') | remoting/client/plugin/pepper_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698