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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_private_api.h

Issue 9545006: This adds some GData private API to the file manager (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 protected: 360 protected:
361 virtual ~FileDialogStringsFunction() {} 361 virtual ~FileDialogStringsFunction() {}
362 362
363 // SyncExtensionFunction overrides. 363 // SyncExtensionFunction overrides.
364 virtual bool RunImpl() OVERRIDE; 364 virtual bool RunImpl() OVERRIDE;
365 365
366 private: 366 private:
367 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); 367 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings");
368 }; 368 };
369 369
370 // Retrieve property information for multiple files, returning a list of the
371 // same length as the input list of file URLs. If a particular file isn't
372 // found, then return a dictionary with the key "error" set to the string
373 // "NOT_FOUND" for that entry in the returned list. If an entry is a directory
374 // instead of a file, then an empty attribute dictionary is returned at that
375 // position in the list.
376 class GetGDataFilePropertiesFunction
377 : public FileBrowserFunction {
378 public:
379 GetGDataFilePropertiesFunction();
380
381 protected:
382 virtual ~GetGDataFilePropertiesFunction();
383
384 // AsyncExtensionFunction overrides.
385 virtual bool RunImpl() OVERRIDE;
386
387 private:
388 // A callback method to handle the result of
389 // GetLocalPathsOnFileThreadAndRunCallbackOnUIThread.
390 void GetLocalPathsResponseOnUIThread(const FilePathList& files);
391
392 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getGDataFileProperties");
393 };
370 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 394 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698