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

Side by Side Diff: apps/saved_files_service_delegate_impl.h

Issue 2934143002: Move chrome.fileSystem implementation to //extensions (Closed)
Patch Set: devlin Created 3 years, 6 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 APPS_SAVED_FILES_SERVICE_DELEGATE_IMPL_H_
6 #define APPS_SAVED_FILES_SERVICE_DELEGATE_IMPL_H_
7
8 #include "extensions/browser/api/file_system/saved_files_service_delegate.h"
9
10 #include <string>
11
12 #include "base/macros.h"
13
14 namespace content {
15 class BrowserContext;
16 }
17
18 namespace apps {
19
20 class SavedFilesService;
21
22 // Concrete implementation that just forwards calls to the SavedFilesService.
23 class SavedFilesServiceDelegateImpl
24 : public extensions::file_system_api::SavedFilesServiceDelegate {
25 public:
26 SavedFilesServiceDelegateImpl(content::BrowserContext* browser_context);
27 ~SavedFilesServiceDelegateImpl() override;
28
29 // extensions::file_system_api::SavedFileServiceDelegate:
30 bool IsRegistered(const std::string& extension_id,
31 const std::string& id) override;
32 void RegisterFileEntry(const std::string& extension_id,
33 const File& file) override;
34 bool GetRegisteredFileInfo(const std::string& extension_id,
35 const std::string& id,
36 File* file) override;
37 void EnqueueFileEntry(const std::string& extension_id,
38 const std::string& id) override;
39
40 private:
41 SavedFilesService* saved_files_service_;
42
43 DISALLOW_COPY_AND_ASSIGN(SavedFilesServiceDelegateImpl);
44 };
45
46 } // namespace apps
47
48 #endif // APPS_SAVED_FILES_SERVICE_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698