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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_drive.h

Issue 23581006: Reland 220012: Move the functions of filebrowserPrivateApi from the file_manager namespace to the e… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 3 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file provides Drive specific API functions. 5 // This file provides Drive specific API functions.
6 6
7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_
8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_ 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_
9 9
10 #include "chrome/browser/chromeos/drive/file_errors.h" 10 #include "chrome/browser/chromeos/drive/file_errors.h"
11 #include "chrome/browser/chromeos/drive/file_system_interface.h" 11 #include "chrome/browser/chromeos/drive/file_system_interface.h"
12 #include "chrome/browser/chromeos/extensions/file_manager/private_api_base.h" 12 #include "chrome/browser/chromeos/extensions/file_manager/private_api_base.h"
13 13
14 namespace drive { 14 namespace drive {
15 class FileCacheEntry; 15 class FileCacheEntry;
16 class ResourceEntry; 16 class ResourceEntry;
17 struct DriveAppInfo; 17 struct DriveAppInfo;
18 struct SearchResultInfo; 18 struct SearchResultInfo;
19 } 19 }
20 20
21 namespace file_manager { 21 namespace extensions {
22 22
23 // Retrieves property information for an entry and returns it as a dictionary. 23 // Retrieves property information for an entry and returns it as a dictionary.
24 // On error, returns a dictionary with the key "error" set to the error number 24 // On error, returns a dictionary with the key "error" set to the error number
25 // (drive::FileError). 25 // (drive::FileError).
26 class GetDriveEntryPropertiesFunction : public LoggedAsyncExtensionFunction { 26 class GetDriveEntryPropertiesFunction : public LoggedAsyncExtensionFunction {
27 public: 27 public:
28 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.getDriveEntryProperties", 28 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.getDriveEntryProperties",
29 FILEBROWSERPRIVATE_GETDRIVEFILEPROPERTIES) 29 FILEBROWSERPRIVATE_GETDRIVEFILEPROPERTIES)
30 30
31 GetDriveEntryPropertiesFunction(); 31 GetDriveEntryPropertiesFunction();
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 virtual ~GetShareUrlFunction(); 217 virtual ~GetShareUrlFunction();
218 218
219 // AsyncExtensionFunction overrides. 219 // AsyncExtensionFunction overrides.
220 virtual bool RunImpl() OVERRIDE; 220 virtual bool RunImpl() OVERRIDE;
221 221
222 // Callback with an url to the sharing dialog as |share_url|, called by 222 // Callback with an url to the sharing dialog as |share_url|, called by
223 // FileSystem::GetShareUrl. 223 // FileSystem::GetShareUrl.
224 void OnGetShareUrl(drive::FileError error, const GURL& share_url); 224 void OnGetShareUrl(drive::FileError error, const GURL& share_url);
225 }; 225 };
226 226
227 } // namespace file_manager 227 } // namespace extensions
228 228
229 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_ 229 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DRIVE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698