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

Side by Side Diff: trunk/src/content/renderer/pepper/ppb_file_ref_impl.cc

Issue 22901012: Revert 218305 "Pepper: Move FileRef to the "new" resource proxy." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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
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/ppb_file_ref_impl.h" 5 #include "content/renderer/pepper/ppb_file_ref_impl.h"
6 6
7 #include "base/files/file_util_proxy.h" 7 #include "base/files/file_util_proxy.h"
8 #include "base/platform_file.h" 8 #include "base/platform_file.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 if (!resource || !ppapi_host) 546 if (!resource || !ppapi_host)
547 return NULL; 547 return NULL;
548 ppapi::host::ResourceHost* resource_host = 548 ppapi::host::ResourceHost* resource_host =
549 ppapi_host->GetResourceHost(resource); 549 ppapi_host->GetResourceHost(resource);
550 if (resource_host && resource_host->IsFileSystemHost()) 550 if (resource_host && resource_host->IsFileSystemHost())
551 return static_cast<PepperFileSystemHost*>(resource_host); 551 return static_cast<PepperFileSystemHost*>(resource_host);
552 return NULL; 552 return NULL;
553 } 553 }
554 554
555 } // namespace content 555 } // namespace content
OLDNEW
« no previous file with comments | « trunk/src/content/renderer/pepper/ppb_file_ref_impl.h ('k') | trunk/src/content/renderer/pepper/resource_creation_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698