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

Side by Side Diff: webkit/plugins/ppapi/host_globals.h

Issue 11189146: Eliminate implicit conversion from scoped_refptr<T> to T* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_
6 #define WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_ 6 #define WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ppapi/shared_impl/callback_tracker.h" 9 #include "ppapi/shared_impl/callback_tracker.h"
10 #include "ppapi/shared_impl/ppapi_globals.h" 10 #include "ppapi/shared_impl/ppapi_globals.h"
(...skipping 18 matching lines...) Expand all
29 // PpapiGlobals::Get() when possible. Use this only when you need some 29 // PpapiGlobals::Get() when possible. Use this only when you need some
30 // host-specific functionality. 30 // host-specific functionality.
31 inline static HostGlobals* Get() { 31 inline static HostGlobals* Get() {
32 DCHECK(PpapiGlobals::Get()->IsHostGlobals()); 32 DCHECK(PpapiGlobals::Get()->IsHostGlobals());
33 return static_cast<HostGlobals*>(PpapiGlobals::Get()); 33 return static_cast<HostGlobals*>(PpapiGlobals::Get());
34 } 34 }
35 35
36 // PpapiGlobals implementation. 36 // PpapiGlobals implementation.
37 virtual ::ppapi::ResourceTracker* GetResourceTracker() OVERRIDE; 37 virtual ::ppapi::ResourceTracker* GetResourceTracker() OVERRIDE;
38 virtual ::ppapi::VarTracker* GetVarTracker() OVERRIDE; 38 virtual ::ppapi::VarTracker* GetVarTracker() OVERRIDE;
39 virtual ::ppapi::CallbackTracker* GetCallbackTrackerForInstance( 39 virtual scoped_refptr< ::ppapi::CallbackTracker>
40 PP_Instance instance) OVERRIDE; 40 GetCallbackTrackerForInstance(PP_Instance instance) OVERRIDE;
41 virtual ::ppapi::FunctionGroupBase* GetFunctionAPI( 41 virtual ::ppapi::FunctionGroupBase* GetFunctionAPI(
42 PP_Instance inst, 42 PP_Instance inst,
43 ::ppapi::ApiID id) OVERRIDE; 43 ::ppapi::ApiID id) OVERRIDE;
44 virtual PP_Module GetModuleForInstance(PP_Instance instance) OVERRIDE; 44 virtual PP_Module GetModuleForInstance(PP_Instance instance) OVERRIDE;
45 virtual base::Lock* GetProxyLock() OVERRIDE; 45 virtual base::Lock* GetProxyLock() OVERRIDE;
46 46
47 HostVarTracker* host_var_tracker() { 47 HostVarTracker* host_var_tracker() {
48 return &host_var_tracker_; 48 return &host_var_tracker_;
49 } 49 }
50 50
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 typedef std::map<PP_Module, PluginModule*> ModuleMap; 100 typedef std::map<PP_Module, PluginModule*> ModuleMap;
101 ModuleMap module_map_; 101 ModuleMap module_map_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(HostGlobals); 103 DISALLOW_COPY_AND_ASSIGN(HostGlobals);
104 }; 104 };
105 105
106 } // namespace ppapi 106 } // namespace ppapi
107 } // namespace webkit 107 } // namespace webkit
108 108
109 #endif // WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_ 109 #endif // WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/webplugin_delegate_impl_win.cc ('k') | webkit/plugins/ppapi/host_globals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698