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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/file_system_plugin/provided_file_system_adapter.h

Issue 1093383002: [WIP] Provided file system from NACL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved several modules to chromeos folder. Created 5 years, 5 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 2015 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 CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PLUGIN_PROVIDED_FILE_SYSTEM _ADAPTER_H
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PLUGIN_PROVIDED_FILE_SYSTEM _ADAPTER_H
7
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/values.h"
11 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte rface.h"
12 #include "chrome/browser/chromeos/file_system_provider/request_manager.h"
13 #include "chrome/common/extensions/api/file_system_provider.h"
14
15 namespace chromeos {
16 namespace file_system_provider {
17
18 class ProvidedFileSystemAdapter {
19 public:
20 typedef base::Callback<void(base::File::Error)>
21 StatusCallback;
22 static RequestType OperationTypeFromExtensionEvent(
23 const std::string& extension_operation);
24 bool PushSuccessResponse(int32_t, scoped_ptr<base::ListValue>);
25 bool PushErrorResponse(scoped_ptr<base::ListValue>);
26 bool PushChangeNotificationResponse(scoped_ptr<base::ListValue>,
27 StatusCallback);
28 // ProvidedFileSystemInterface interface
29 ProvidedFileSystemInterface* GetProvidedFileSystem();
30
31 explicit ProvidedFileSystemAdapter(
32 scoped_ptr<ProvidedFileSystemInterface> file_system );
33 ~ProvidedFileSystemAdapter();
34 private:
35 scoped_ptr<ProvidedFileSystemInterface> provided_file_system_impl_;
36 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystemAdapter);
37 };
38
39 } // namespace file_system_provider
40 } // namespace chromeos
41 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PLUGIN_PROVIDED_FILE_SYST EM_ADAPTER_H
42
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698