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

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

Issue 14020002: chromeos: Move chrome/browser/chromeos/extensions/file_browser* to chrome/browser/chromeos/file_man… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sort Created 7 years, 8 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 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/platform_file.h" 14 #include "base/platform_file.h"
15 #include "base/prefs/pref_service.h" 15 #include "base/prefs/pref_service.h"
16 #include "chrome/browser/chromeos/drive/drive_cache.h" 16 #include "chrome/browser/chromeos/drive/drive_cache.h"
17 #include "chrome/browser/chromeos/drive/drive_file_error.h" 17 #include "chrome/browser/chromeos/drive/drive_file_error.h"
18 #include "chrome/browser/chromeos/drive/search_metadata.h" 18 #include "chrome/browser/chromeos/drive/search_metadata.h"
19 #include "chrome/browser/chromeos/extensions/file_browser_event_router.h" 19 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_event_rou ter.h"
20 #include "chrome/browser/chromeos/extensions/zip_file_creator.h" 20 #include "chrome/browser/chromeos/extensions/zip_file_creator.h"
21 #include "chrome/browser/extensions/extension_function.h" 21 #include "chrome/browser/extensions/extension_function.h"
22 #include "chrome/browser/profiles/profile_keyed_service.h" 22 #include "chrome/browser/profiles/profile_keyed_service.h"
23 #include "googleurl/src/url_util.h" 23 #include "googleurl/src/url_util.h"
24 24
25 class GURL; 25 class GURL;
26 class Profile; 26 class Profile;
27 27
28 namespace base { 28 namespace base {
29 class Value; 29 class Value;
(...skipping 20 matching lines...) Expand all
50 public: 50 public:
51 explicit FileBrowserPrivateAPI(Profile* profile); 51 explicit FileBrowserPrivateAPI(Profile* profile);
52 virtual ~FileBrowserPrivateAPI(); 52 virtual ~FileBrowserPrivateAPI();
53 53
54 // ProfileKeyedService overrides. 54 // ProfileKeyedService overrides.
55 virtual void Shutdown() OVERRIDE; 55 virtual void Shutdown() OVERRIDE;
56 56
57 // Convenience function to return the FileBrowserPrivateAPI for a Profile. 57 // Convenience function to return the FileBrowserPrivateAPI for a Profile.
58 static FileBrowserPrivateAPI* Get(Profile* profile); 58 static FileBrowserPrivateAPI* Get(Profile* profile);
59 59
60 FileBrowserEventRouter* event_router() { 60 FileManagerEventRouter* event_router() {
61 return event_router_.get(); 61 return event_router_.get();
62 } 62 }
63 63
64 private: 64 private:
65 scoped_ptr<FileBrowserEventRouter> event_router_; 65 scoped_ptr<FileManagerEventRouter> event_router_;
66 }; 66 };
67 67
68 // Implements the chrome.fileBrowserPrivate.logoutUser method. 68 // Implements the chrome.fileBrowserPrivate.logoutUser method.
69 class LogoutUserFunction : public SyncExtensionFunction { 69 class LogoutUserFunction : public SyncExtensionFunction {
70 public: 70 public:
71 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.logoutUser", 71 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.logoutUser",
72 FILEBROWSERPRIVATE_LOGOUTUSER) 72 FILEBROWSERPRIVATE_LOGOUTUSER)
73 73
74 protected: 74 protected:
75 virtual ~LogoutUserFunction() {} 75 virtual ~LogoutUserFunction() {}
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 OpenNewWindowFunction(); 889 OpenNewWindowFunction();
890 890
891 protected: 891 protected:
892 virtual ~OpenNewWindowFunction(); 892 virtual ~OpenNewWindowFunction();
893 893
894 // AsyncExtensionFunction overrides. 894 // AsyncExtensionFunction overrides.
895 virtual bool RunImpl() OVERRIDE; 895 virtual bool RunImpl() OVERRIDE;
896 }; 896 };
897 897
898 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 898 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698