OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |