| 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 "ppapi/proxy/ppp_instance_proxy.h" | 5 #include "ppapi/proxy/ppp_instance_proxy.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include <algorithm> | 10 #include <algorithm> |
| 8 | 11 |
| 9 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "build/build_config.h" |
| 10 #include "ppapi/c/pp_var.h" | 14 #include "ppapi/c/pp_var.h" |
| 11 #include "ppapi/c/ppb_core.h" | 15 #include "ppapi/c/ppb_core.h" |
| 12 #include "ppapi/c/ppb_fullscreen.h" | 16 #include "ppapi/c/ppb_fullscreen.h" |
| 13 #include "ppapi/c/ppp_instance.h" | 17 #include "ppapi/c/ppp_instance.h" |
| 14 #include "ppapi/proxy/host_dispatcher.h" | 18 #include "ppapi/proxy/host_dispatcher.h" |
| 15 #include "ppapi/proxy/plugin_dispatcher.h" | 19 #include "ppapi/proxy/plugin_dispatcher.h" |
| 16 #include "ppapi/proxy/plugin_globals.h" | 20 #include "ppapi/proxy/plugin_globals.h" |
| 17 #include "ppapi/proxy/plugin_proxy_delegate.h" | 21 #include "ppapi/proxy/plugin_proxy_delegate.h" |
| 18 #include "ppapi/proxy/plugin_resource_tracker.h" | 22 #include "ppapi/proxy/plugin_resource_tracker.h" |
| 19 #include "ppapi/proxy/ppapi_messages.h" | 23 #include "ppapi/proxy/ppapi_messages.h" |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 if (!combined_interface_->HandleDocumentLoad(instance, loader_pp_resource)) | 251 if (!combined_interface_->HandleDocumentLoad(instance, loader_pp_resource)) |
| 248 loader_resource->Close(); | 252 loader_resource->Close(); |
| 249 // We don't pass a ref into the plugin, if it wants one, it will have taken | 253 // We don't pass a ref into the plugin, if it wants one, it will have taken |
| 250 // an additional one. | 254 // an additional one. |
| 251 PpapiGlobals::Get()->GetResourceTracker()->ReleaseResource( | 255 PpapiGlobals::Get()->GetResourceTracker()->ReleaseResource( |
| 252 loader_pp_resource); | 256 loader_pp_resource); |
| 253 } | 257 } |
| 254 | 258 |
| 255 } // namespace proxy | 259 } // namespace proxy |
| 256 } // namespace ppapi | 260 } // namespace ppapi |
| OLD | NEW |