Chromium Code Reviews| 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 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
| 6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 282 const base::FilePath& partition_path() const { return partition_path_; } | 282 const base::FilePath& partition_path() const { return partition_path_; } |
| 283 | 283 |
| 284 // Same as |CrackFileSystemURL|, but cracks FileSystemURL created from |url|. | 284 // Same as |CrackFileSystemURL|, but cracks FileSystemURL created from |url|. |
| 285 FileSystemURL CrackURL(const GURL& url) const; | 285 FileSystemURL CrackURL(const GURL& url) const; |
| 286 // Same as |CrackFileSystemURL|, but cracks FileSystemURL created from method | 286 // Same as |CrackFileSystemURL|, but cracks FileSystemURL created from method |
| 287 // arguments. | 287 // arguments. |
| 288 FileSystemURL CreateCrackedFileSystemURL(const GURL& origin, | 288 FileSystemURL CreateCrackedFileSystemURL(const GURL& origin, |
| 289 FileSystemType type, | 289 FileSystemType type, |
| 290 const base::FilePath& path) const; | 290 const base::FilePath& path) const; |
| 291 | 291 |
| 292 #if defined(OS_CHROMEOS) | |
| 293 // Used only on ChromeOS for now. | |
|
nhiroki
2016/12/09 07:52:59
Could you add a comment like this?:
// Used only
| |
| 294 void EnableTemporaryFileSystemInIncognito(); | 292 void EnableTemporaryFileSystemInIncognito(); |
| 295 #endif | |
| 296 | 293 |
| 297 SandboxFileSystemBackendDelegate* sandbox_delegate() { | 294 SandboxFileSystemBackendDelegate* sandbox_delegate() { |
| 298 return sandbox_delegate_.get(); | 295 return sandbox_delegate_.get(); |
| 299 } | 296 } |
| 300 | 297 |
| 301 // Returns true if the requested url is ok to be served. | 298 // Returns true if the requested url is ok to be served. |
| 302 // (E.g. this returns false if the context is created for incognito mode) | 299 // (E.g. this returns false if the context is created for incognito mode) |
| 303 bool CanServeURLRequest(const FileSystemURL& url) const; | 300 bool CanServeURLRequest(const FileSystemURL& url) const; |
| 304 | 301 |
| 305 // This must be used to open 'plugin private' filesystem. | 302 // This must be used to open 'plugin private' filesystem. |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 420 | 417 |
| 421 struct DefaultContextDeleter { | 418 struct DefaultContextDeleter { |
| 422 static void Destruct(const FileSystemContext* context) { | 419 static void Destruct(const FileSystemContext* context) { |
| 423 context->DeleteOnCorrectThread(); | 420 context->DeleteOnCorrectThread(); |
| 424 } | 421 } |
| 425 }; | 422 }; |
| 426 | 423 |
| 427 } // namespace storage | 424 } // namespace storage |
| 428 | 425 |
| 429 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 426 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
| OLD | NEW |