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

Side by Side Diff: mojo/examples/pepper_container_app/mojo_ppapi_globals.cc

Issue 502573006: Remove implicit conversions from scoped_refptr to T* in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
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 "mojo/examples/pepper_container_app/mojo_ppapi_globals.h" 5 #include "mojo/examples/pepper_container_app/mojo_ppapi_globals.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/message_loop/message_loop_proxy.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "mojo/examples/pepper_container_app/plugin_instance.h" 10 #include "mojo/examples/pepper_container_app/plugin_instance.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 return NULL; 148 return NULL;
149 } 149 }
150 150
151 PP_Module MojoPpapiGlobals::GetModuleForInstance(PP_Instance instance) { 151 PP_Module MojoPpapiGlobals::GetModuleForInstance(PP_Instance instance) {
152 NOTIMPLEMENTED(); 152 NOTIMPLEMENTED();
153 return 0; 153 return 0;
154 } 154 }
155 155
156 ppapi::MessageLoopShared* MojoPpapiGlobals::GetCurrentMessageLoop() { 156 ppapi::MessageLoopShared* MojoPpapiGlobals::GetCurrentMessageLoop() {
157 if (base::MessageLoopProxy::current().get() == GetMainThreadMessageLoop()) { 157 if (base::MessageLoopProxy::current().get() == GetMainThreadMessageLoop()) {
158 if (!main_thread_message_loop_resource_) { 158 if (!main_thread_message_loop_resource_.get()) {
159 main_thread_message_loop_resource_ = new MainThreadMessageLoopResource( 159 main_thread_message_loop_resource_ = new MainThreadMessageLoopResource(
160 GetMainThreadMessageLoop()); 160 GetMainThreadMessageLoop());
161 } 161 }
162 return main_thread_message_loop_resource_.get(); 162 return main_thread_message_loop_resource_.get();
163 } 163 }
164 164
165 NOTIMPLEMENTED(); 165 NOTIMPLEMENTED();
166 return NULL; 166 return NULL;
167 } 167 }
168 168
169 base::TaskRunner* MojoPpapiGlobals::GetFileTaskRunner() { 169 base::TaskRunner* MojoPpapiGlobals::GetFileTaskRunner() {
170 NOTIMPLEMENTED(); 170 NOTIMPLEMENTED();
171 return NULL; 171 return NULL;
172 } 172 }
173 173
174 std::string MojoPpapiGlobals::GetCmdLine() { 174 std::string MojoPpapiGlobals::GetCmdLine() {
175 NOTIMPLEMENTED(); 175 NOTIMPLEMENTED();
176 return std::string(); 176 return std::string();
177 } 177 }
178 178
179 void MojoPpapiGlobals::PreCacheFontForFlash(const void* logfontw) { 179 void MojoPpapiGlobals::PreCacheFontForFlash(const void* logfontw) {
180 NOTIMPLEMENTED(); 180 NOTIMPLEMENTED();
181 } 181 }
182 182
183 } // namespace examples 183 } // namespace examples
184 } // namespace mojo 184 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698