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

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

Issue 10391103: [File Manager] Add/remove Google Drive folder in the open File Manager when Drive enabled/disabled … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 7 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 (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 14 matching lines...) Expand all
25 25
26 // Implements the chrome.fileBrowserPrivate.requestLocalFileSystem method. 26 // Implements the chrome.fileBrowserPrivate.requestLocalFileSystem method.
27 class RequestLocalFileSystemFunction : public AsyncExtensionFunction { 27 class RequestLocalFileSystemFunction : public AsyncExtensionFunction {
28 protected: 28 protected:
29 // AsyncExtensionFunction overrides. 29 // AsyncExtensionFunction overrides.
30 virtual bool RunImpl() OVERRIDE; 30 virtual bool RunImpl() OVERRIDE;
31 31
32 private: 32 private:
33 class LocalFileSystemCallbackDispatcher; 33 class LocalFileSystemCallbackDispatcher;
34 34
35 // Adds gdata mount point.
36 void AddGDataMountPoint();
37
38 void RespondSuccessOnUIThread(const std::string& name, 35 void RespondSuccessOnUIThread(const std::string& name,
39 const GURL& root_path); 36 const GURL& root_path);
40 void RespondFailedOnUIThread(base::PlatformFileError error_code); 37 void RespondFailedOnUIThread(base::PlatformFileError error_code);
41 void RequestOnFileThread(const GURL& source_url, int child_id); 38 void RequestOnFileThread(const GURL& source_url, int child_id);
42 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.requestLocalFileSystem"); 39 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.requestLocalFileSystem");
43 }; 40 };
44 41
45 // Implements the chrome.fileBrowserPrivate.addFileWatch method. 42 // Implements the chrome.fileBrowserPrivate.addFileWatch method.
46 class FileWatchBrowserFunctionBase : public AsyncExtensionFunction { 43 class FileWatchBrowserFunctionBase : public AsyncExtensionFunction {
47 protected: 44 protected:
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 // Implements the chrome.fileBrowserPrivate.getNetworkConnectionState method. 604 // Implements the chrome.fileBrowserPrivate.getNetworkConnectionState method.
608 class GetNetworkConnectionStateFunction : public SyncExtensionFunction { 605 class GetNetworkConnectionStateFunction : public SyncExtensionFunction {
609 protected: 606 protected:
610 virtual bool RunImpl() OVERRIDE; 607 virtual bool RunImpl() OVERRIDE;
611 private: 608 private:
612 DECLARE_EXTENSION_FUNCTION_NAME( 609 DECLARE_EXTENSION_FUNCTION_NAME(
613 "fileBrowserPrivate.getNetworkConnectionState"); 610 "fileBrowserPrivate.getNetworkConnectionState");
614 }; 611 };
615 612
616 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 613 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698