| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_ARC_FILE_SYSTEM_FAKE_ARC_FILE_SYSTEM_OPERATION_RUNNER_H_ | |
| 6 #define COMPONENTS_ARC_FILE_SYSTEM_FAKE_ARC_FILE_SYSTEM_OPERATION_RUNNER_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "components/arc/file_system/arc_file_system_operation_runner.h" | |
| 10 | |
| 11 namespace arc { | |
| 12 | |
| 13 // TODO(crbug.com/683049): Implement a generic fake. | |
| 14 class FakeArcFileSystemOperationRunner : public ArcFileSystemOperationRunner { | |
| 15 public: | |
| 16 explicit FakeArcFileSystemOperationRunner(ArcBridgeService* bridge_service); | |
| 17 ~FakeArcFileSystemOperationRunner() override; | |
| 18 | |
| 19 // ArcFileSystemOperationRunner overrides. | |
| 20 void GetFileSize(const GURL& url, | |
| 21 const GetFileSizeCallback& callback) override; | |
| 22 void OpenFileToRead(const GURL& url, | |
| 23 const OpenFileToReadCallback& callback) override; | |
| 24 void GetDocument(const std::string& authority, | |
| 25 const std::string& document_id, | |
| 26 const GetDocumentCallback& callback) override; | |
| 27 void GetChildDocuments(const std::string& authority, | |
| 28 const std::string& parent_document_id, | |
| 29 const GetChildDocumentsCallback& callback) override; | |
| 30 | |
| 31 private: | |
| 32 DISALLOW_COPY_AND_ASSIGN(FakeArcFileSystemOperationRunner); | |
| 33 }; | |
| 34 | |
| 35 } // namespace arc | |
| 36 | |
| 37 #endif // COMPONENTS_ARC_FILE_SYSTEM_FAKE_ARC_FILE_SYSTEM_OPERATION_RUNNER_H_ | |
| OLD | NEW |