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

Side by Side Diff: webkit/fileapi/sandbox_mount_point_provider.cc

Issue 11939002: Cleanup: Remove unused variables from sandbox_mount_point_provider.cc. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "webkit/fileapi/sandbox_mount_point_provider.h" 5 #include "webkit/fileapi/sandbox_mount_point_provider.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 430
431 FileSystemOperationContext context(file_system_context); 431 FileSystemOperationContext context(file_system_context);
432 FileSystemURL url(origin_url, type, FilePath()); 432 FileSystemURL url(origin_url, type, FilePath());
433 scoped_ptr<FileSystemFileUtil::AbstractFileEnumerator> enumerator( 433 scoped_ptr<FileSystemFileUtil::AbstractFileEnumerator> enumerator(
434 sandbox_file_util_->CreateFileEnumerator(&context, url, true)); 434 sandbox_file_util_->CreateFileEnumerator(&context, url, true));
435 435
436 FilePath file_path_each; 436 FilePath file_path_each;
437 int64 usage = 0; 437 int64 usage = 0;
438 438
439 while (!(file_path_each = enumerator->Next()).empty()) { 439 while (!(file_path_each = enumerator->Next()).empty()) {
440 base::PlatformFileInfo file_info;
441 FilePath platform_file_path;
442 usage += enumerator->Size(); 440 usage += enumerator->Size();
443 usage += ObfuscatedFileUtil::ComputeFilePathCost(file_path_each); 441 usage += ObfuscatedFileUtil::ComputeFilePathCost(file_path_each);
444 } 442 }
445 // This clears the dirty flag too. 443 // This clears the dirty flag too.
446 FileSystemUsageCache::UpdateUsage(usage_file_path, usage); 444 FileSystemUsageCache::UpdateUsage(usage_file_path, usage);
447 return usage; 445 return usage;
448 } 446 }
449 447
450 void SandboxMountPointProvider::InvalidateUsageCache( 448 void SandboxMountPointProvider::InvalidateUsageCache(
451 const GURL& origin_url, fileapi::FileSystemType type) { 449 const GURL& origin_url, fileapi::FileSystemType type) {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 i < file_system_options_.additional_allowed_schemes().size(); 568 i < file_system_options_.additional_allowed_schemes().size();
571 ++i) { 569 ++i) {
572 if (url.SchemeIs( 570 if (url.SchemeIs(
573 file_system_options_.additional_allowed_schemes()[i].c_str())) 571 file_system_options_.additional_allowed_schemes()[i].c_str()))
574 return true; 572 return true;
575 } 573 }
576 return false; 574 return false;
577 } 575 }
578 576
579 } // namespace fileapi 577 } // namespace fileapi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698