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

Side by Side Diff: content/renderer/pepper/host_globals.cc

Issue 25328002: PPAPI: Remove instance param from GetFileTaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « content/renderer/pepper/host_globals.h ('k') | ppapi/proxy/file_io_resource.cc » ('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 (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 #include "content/renderer/pepper/host_globals.h" 5 #include "content/renderer/pepper/host_globals.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 GetAllContainersForModule(i->second, &containers); 170 GetAllContainersForModule(i->second, &containers);
171 } 171 }
172 } 172 }
173 173
174 WebConsoleMessage message = MakeLogMessage(level, source, value); 174 WebConsoleMessage message = MakeLogMessage(level, source, value);
175 for (ContainerSet::iterator i = containers.begin(); 175 for (ContainerSet::iterator i = containers.begin();
176 i != containers.end(); ++i) 176 i != containers.end(); ++i)
177 (*i)->element().document().frame()->addMessageToConsole(message); 177 (*i)->element().document().frame()->addMessageToConsole(message);
178 } 178 }
179 179
180 base::TaskRunner* HostGlobals::GetFileTaskRunner(PP_Instance instance) { 180 base::TaskRunner* HostGlobals::GetFileTaskRunner() {
181 return RenderThreadImpl::current()->GetFileThreadMessageLoopProxy().get(); 181 return RenderThreadImpl::current()->GetFileThreadMessageLoopProxy().get();
182 } 182 }
183 183
184 ppapi::MessageLoopShared* HostGlobals::GetCurrentMessageLoop() { 184 ppapi::MessageLoopShared* HostGlobals::GetCurrentMessageLoop() {
185 return NULL; 185 return NULL;
186 } 186 }
187 187
188 PP_Module HostGlobals::AddModule(PluginModule* module) { 188 PP_Module HostGlobals::AddModule(PluginModule* module) {
189 #ifndef NDEBUG 189 #ifndef NDEBUG
190 // Make sure we're not adding one more than once. 190 // Make sure we're not adding one more than once.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 if (found == instance_map_.end()) 263 if (found == instance_map_.end())
264 return NULL; 264 return NULL;
265 return found->second; 265 return found->second;
266 } 266 }
267 267
268 bool HostGlobals::IsHostGlobals() const { 268 bool HostGlobals::IsHostGlobals() const {
269 return true; 269 return true;
270 } 270 }
271 271
272 } // namespace content 272 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/host_globals.h ('k') | ppapi/proxy/file_io_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698