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

Side by Side Diff: chrome/browser/extensions/api/extfs/extfs_api.h

Issue 16439016: extfs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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_EXTENSIONS_API_EXTFS_EXTFS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_EXTFS_EXTFS_API_H_
7
8 #include <utility>
9
10 #include "base/platform_file.h"
11 #include "chrome/browser/extensions/extension_function.h"
12 #include "net/url_request/url_fetcher.h"
13 #include "net/url_request/url_fetcher_delegate.h"
14
15 namespace extensions {
16
17 class ExtfsAddMountPointFunction
18 : public AsyncExtensionFunction {
19 public:
20 DECLARE_EXTENSION_FUNCTION("extfs.addMountPoint",
21 EXTFS_ADDMOUNTPOINT)
22
23 protected:
24 virtual ~ExtfsAddMountPointFunction() {}
25 virtual bool RunImpl() OVERRIDE;
26
27 private:
28 };
29
30 class ExtfsReturnEntryFunction
31 : public AsyncExtensionFunction {
32 public:
33 DECLARE_EXTENSION_FUNCTION("extfs.returnEntry",
34 EXTFS_RETURNENTRY)
35
36 protected:
37 virtual ~ExtfsReturnEntryFunction() {}
38 virtual bool RunImpl() OVERRIDE;
39
40 private:
41 };
42
43 class ExtfsReturnEntriesFunction
44 : public AsyncExtensionFunction {
45 public:
46 DECLARE_EXTENSION_FUNCTION("extfs.returnEntries",
47 EXTFS_RETURNENTRIES)
48
49 protected:
50 virtual ~ExtfsReturnEntriesFunction() {}
51 virtual bool RunImpl() OVERRIDE;
52
53 private:
54 };
55
56 class ExtfsReturnSnapshotFunction
57 : public AsyncExtensionFunction,
58 public net::URLFetcherDelegate {
59 public:
60 ExtfsReturnSnapshotFunction();
61
62 DECLARE_EXTENSION_FUNCTION("extfs.returnSnapshot",
63 EXTFS_RETURNSNAPSHOT)
64
65 protected:
66 virtual ~ExtfsReturnSnapshotFunction() {}
67 virtual bool RunImpl() OVERRIDE;
68
69 private:
70 // net::URLFetcherDelegate override.
71 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
72
73 // ...
74 void DidCreateTemporaryFile(
75 base::PlatformFileError* error,
76 base::PlatformFileInfo* file_info,
77 base::FilePath* file_path);
78
79 net::URLFetcher* url_fetcher_;
80 int request_id_;
81 };
82
83 } // namespace extensions
84
85 #endif // CHROME_BROWSER_EXTENSIONS_API_EXTFS_EXTFS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698