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

Unified Diff: ppapi/proxy/ppb_flash_file_proxy.cc

Issue 8316008: Add a new globals object for PPAPI tracking information. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/ppb_flash_file_proxy.cc
diff --git a/ppapi/proxy/ppb_flash_file_proxy.cc b/ppapi/proxy/ppb_flash_file_proxy.cc
index fa636aa83b04d9cb68b0e3bc7e2fedbe31043300..de5a40c6a7979ad5abe8a489a77e2b629fefd807 100644
--- a/ppapi/proxy/ppb_flash_file_proxy.cc
+++ b/ppapi/proxy/ppb_flash_file_proxy.cc
@@ -21,9 +21,10 @@
#include "ppapi/c/pp_file_info.h"
#include "ppapi/c/private/ppb_flash_file.h"
#include "ppapi/proxy/plugin_dispatcher.h"
-#include "ppapi/proxy/plugin_resource_tracker.h"
#include "ppapi/proxy/ppapi_messages.h"
+#include "ppapi/shared_impl/ppapi_globals.h"
#include "ppapi/shared_impl/resource.h"
+#include "ppapi/shared_impl/resource_tracker.h"
namespace ppapi {
namespace proxy {
@@ -631,7 +632,7 @@ int32_t OpenFileRefFile(PP_Resource file_ref_id,
int32_t mode,
PP_FileHandle* file) {
Resource* file_ref =
- PluginResourceTracker::GetInstance()->GetResource(file_ref_id);
+ PpapiGlobals::Get()->GetResourceTracker()->GetResource(file_ref_id);
if (!file_ref)
return PP_ERROR_BADRESOURCE;
@@ -651,7 +652,7 @@ int32_t OpenFileRefFile(PP_Resource file_ref_id,
int32_t QueryFileRefFile(PP_Resource file_ref_id,
PP_FileInfo* info) {
Resource* file_ref =
- PluginResourceTracker::GetInstance()->GetResource(file_ref_id);
+ PpapiGlobals::Get()->GetResourceTracker()->GetResource(file_ref_id);
if (!file_ref)
return PP_ERROR_BADRESOURCE;

Powered by Google App Engine
This is Rietveld 408576698