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

Side by Side Diff: components/arc/file_system/test/fake_arc_file_system_operation_runner.h

Issue 2637163002: Defer ARC file system operations while ARC is booting. (Closed)
Patch Set: Addressed hashimoto's comments. Created 3 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698