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 11 matching lines...) Expand all Loading... |
22 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 22 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
23 #include "third_party/WebKit/public/web/WebDocument.h" | 23 #include "third_party/WebKit/public/web/WebDocument.h" |
24 #include "third_party/WebKit/public/web/WebElement.h" | 24 #include "third_party/WebKit/public/web/WebElement.h" |
25 #include "third_party/WebKit/public/web/WebFrame.h" | 25 #include "third_party/WebKit/public/web/WebFrame.h" |
26 #include "third_party/WebKit/public/web/WebPluginContainer.h" | 26 #include "third_party/WebKit/public/web/WebPluginContainer.h" |
27 | 27 |
28 using ppapi::CheckIdType; | 28 using ppapi::CheckIdType; |
29 using ppapi::MakeTypedId; | 29 using ppapi::MakeTypedId; |
30 using ppapi::PPIdType; | 30 using ppapi::PPIdType; |
31 using ppapi::ResourceTracker; | 31 using ppapi::ResourceTracker; |
32 using WebKit::WebConsoleMessage; | 32 using blink::WebConsoleMessage; |
33 using WebKit::WebString; | 33 using blink::WebString; |
34 | 34 |
35 namespace content { | 35 namespace content { |
36 | 36 |
37 namespace { | 37 namespace { |
38 | 38 |
39 typedef std::set<WebKit::WebPluginContainer*> ContainerSet; | 39 typedef std::set<blink::WebPluginContainer*> ContainerSet; |
40 | 40 |
41 // Adds all WebPluginContainers associated with the given module to the set. | 41 // Adds all WebPluginContainers associated with the given module to the set. |
42 void GetAllContainersForModule(PluginModule* module, | 42 void GetAllContainersForModule(PluginModule* module, |
43 ContainerSet* containers) { | 43 ContainerSet* containers) { |
44 const PluginModule::PluginInstanceSet& instances = | 44 const PluginModule::PluginInstanceSet& instances = |
45 module->GetAllInstances(); | 45 module->GetAllInstances(); |
46 for (PluginModule::PluginInstanceSet::const_iterator i = instances.begin(); | 46 for (PluginModule::PluginInstanceSet::const_iterator i = instances.begin(); |
47 i != instances.end(); ++i) | 47 i != instances.end(); ++i) |
48 containers->insert((*i)->container()); | 48 containers->insert((*i)->container()); |
49 } | 49 } |
(...skipping 213 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 |