OLD | NEW |
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_HANDLER_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_HANDLER_UTIL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_HANDLER_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_HANDLER_UTIL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
11 #include "chrome/common/extensions/extension.h" | 11 #include "chrome/common/extensions/extension.h" |
12 #include "chrome/common/extensions/url_pattern_set.h" | 12 #include "chrome/common/extensions/url_pattern_set.h" |
13 | 13 |
14 class Browser; | 14 class Browser; |
15 class ExtensionHost; | |
16 class FileBrowserHandler; | 15 class FileBrowserHandler; |
17 class GURL; | 16 class GURL; |
18 class Profile; | 17 class Profile; |
19 | 18 |
20 namespace file_handler_util { | 19 namespace file_handler_util { |
21 | 20 |
22 void UpdateFileHandlerUsageStats(Profile* profile, const std::string& task_id); | 21 void UpdateFileHandlerUsageStats(Profile* profile, const std::string& task_id); |
23 | 22 |
24 // Gets read-write file access permission flags. | 23 // Gets read-write file access permission flags. |
25 int GetReadWritePermissions(); | 24 int GetReadWritePermissions(); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 Browser* GetBrowser() const; | 104 Browser* GetBrowser() const; |
106 private: | 105 private: |
107 friend class base::RefCountedThreadSafe<FileTaskExecutor>; | 106 friend class base::RefCountedThreadSafe<FileTaskExecutor>; |
108 | 107 |
109 Profile* profile_; | 108 Profile* profile_; |
110 }; | 109 }; |
111 | 110 |
112 } // namespace file_handler_util | 111 } // namespace file_handler_util |
113 | 112 |
114 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_HANDLER_UTIL_H_ | 113 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_HANDLER_UTIL_H_ |
OLD | NEW |