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

Side by Side Diff: chrome/browser/chromeos/arc/fileapi/arc_file_system_instance_util.h

Issue 2574173002: mediaview: Implement ArcDocumentsProviderRoot. (Closed)
Patch Set: Addressed hashimoto's comments. Created 4 years 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_INSTANCE_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_INSTANCE_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_INSTANCE_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_INSTANCE_UTIL_H_
7 7
8 #include <string>
9
8 #include "components/arc/common/file_system.mojom.h" 10 #include "components/arc/common/file_system.mojom.h"
9 11
10 class GURL; 12 class GURL;
11 13
12 namespace arc { 14 namespace arc {
13 namespace file_system_instance_util { 15 namespace file_system_instance_util {
14 16
15 using GetFileSizeCallback = mojom::FileSystemInstance::GetFileSizeCallback; 17 using GetFileSizeCallback = mojom::FileSystemInstance::GetFileSizeCallback;
16 using OpenFileToReadCallback = 18 using OpenFileToReadCallback =
17 mojom::FileSystemInstance::OpenFileToReadCallback; 19 mojom::FileSystemInstance::OpenFileToReadCallback;
20 using GetDocumentCallback = mojom::FileSystemInstance::GetDocumentCallback;
21 using GetChildDocumentsCallback =
22 mojom::FileSystemInstance::GetChildDocumentsCallback;
18 23
19 // Utility which posts a task to run GetFileSize. 24 // Utility functions to post a task to run FileSystemInstance methods.
20 // This function must be called on the IO thread. 25 // These functions must be called on the IO thread.
21 void GetFileSizeOnIOThread(const GURL& arc_url, 26 void GetFileSizeOnIOThread(const GURL& arc_url,
22 const GetFileSizeCallback& callback); 27 const GetFileSizeCallback& callback);
23
24 // Utility which posts a task to run OpenFileToRead.
25 // This function must be called on the IO thread.
26 void OpenFileToReadOnIOThread(const GURL& arc_url, 28 void OpenFileToReadOnIOThread(const GURL& arc_url,
27 const OpenFileToReadCallback& callback); 29 const OpenFileToReadCallback& callback);
30 void GetDocumentOnIOThread(const std::string& authority,
31 const std::string& document_id,
32 const GetDocumentCallback& callback);
33 void GetChildDocumentsOnIOThread(const std::string& authority,
34 const std::string& parent_document_id,
35 const GetChildDocumentsCallback& callback);
28 36
29 } // namespace file_system_instance_util 37 } // namespace file_system_instance_util
30 } // namespace arc 38 } // namespace arc
31 39
32 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_INSTANCE_UTIL_H_ 40 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_INSTANCE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698