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

Side by Side Diff: content/browser/fileapi/browser_file_system_helper.cc

Issue 137923003: Change fileapi namespace to content for files that are moved under content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 6 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
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/browser/fileapi/browser_file_system_helper.h" 5 #include "content/browser/fileapi/browser_file_system_helper.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 } // namespace 48 } // namespace
49 49
50 scoped_refptr<fileapi::FileSystemContext> CreateFileSystemContext( 50 scoped_refptr<fileapi::FileSystemContext> CreateFileSystemContext(
51 BrowserContext* browser_context, 51 BrowserContext* browser_context,
52 const base::FilePath& profile_path, 52 const base::FilePath& profile_path,
53 bool is_incognito, 53 bool is_incognito,
54 quota::QuotaManagerProxy* quota_manager_proxy) { 54 quota::QuotaManagerProxy* quota_manager_proxy) {
55 55
56 base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool(); 56 base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool();
57 scoped_refptr<base::SequencedTaskRunner> file_task_runner = 57 scoped_refptr<base::SequencedTaskRunner> file_task_runner =
58 pool->GetSequencedTaskRunnerWithShutdownBehavior( 58 pool->GetSequencedTaskRunnerWithShutdownBehavior(
59 pool->GetNamedSequenceToken("FileAPI"), 59 pool->GetNamedSequenceToken("FileAPI"),
60 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); 60 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN);
61 61
62 // Setting up additional filesystem backends. 62 // Setting up additional filesystem backends.
63 ScopedVector<fileapi::FileSystemBackend> additional_backends; 63 ScopedVector<fileapi::FileSystemBackend> additional_backends;
64 GetContentClient()->browser()->GetAdditionalFileSystemBackends( 64 GetContentClient()->browser()->GetAdditionalFileSystemBackends(
65 browser_context, 65 browser_context,
66 profile_path, 66 profile_path,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 context->operation_runner()->SyncGetPlatformPath(url, platform_path); 121 context->operation_runner()->SyncGetPlatformPath(url, platform_path);
122 122
123 // The path is to be attached to URLLoader so we grant read permission 123 // The path is to be attached to URLLoader so we grant read permission
124 // for the file. (We need to check first because a parent directory may 124 // for the file. (We need to check first because a parent directory may
125 // already have the permissions and we don't need to grant it to the file.) 125 // already have the permissions and we don't need to grant it to the file.)
126 if (!policy->CanReadFile(process_id, *platform_path)) 126 if (!policy->CanReadFile(process_id, *platform_path))
127 policy->GrantReadFile(process_id, *platform_path); 127 policy->GrantReadFile(process_id, *platform_path);
128 } 128 }
129 129
130 } // namespace content 130 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698