Chromium Code Reviews| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
| 10 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
| 11 #include "chrome/common/extensions/url_pattern_set.h" | 11 #include "chrome/common/extensions/url_pattern_set.h" |
| 12 | 12 |
| 13 class Browser; | 13 class Browser; |
| 14 class FileBrowserHandler; | 14 class FileBrowserHandler; |
| 15 class GURL; | 15 class GURL; |
| 16 class Profile; | 16 class Profile; |
| 17 | 17 |
| 18 namespace file_handler_util { | 18 namespace file_handler_util { |
| 19 | 19 |
| 20 int GetReadWritePermissions(); | 20 int GetReadWritePermissions(); |
| 21 int GetReadOnlyPermissions(); | |
|
satorux1
2012/03/22 22:28:29
While you are at it, please add some comments to t
tonibarzic
2012/03/22 23:38:20
Done.
| |
| 21 | 22 |
| 22 std::string MakeTaskID(const std::string& extension_id, | 23 std::string MakeTaskID(const std::string& extension_id, |
| 23 const std::string& action_id); | 24 const std::string& action_id); |
| 24 | 25 |
| 25 bool CrackTaskID(const std::string& task_id, | 26 bool CrackTaskID(const std::string& task_id, |
| 26 std::string* target_extension_id, | 27 std::string* target_extension_id, |
| 27 std::string* action_id); | 28 std::string* action_id); |
| 28 | 29 |
| 29 struct LastUsedHandler { | 30 struct LastUsedHandler { |
| 30 LastUsedHandler(int t, const FileBrowserHandler* h, URLPatternSet p) | 31 LastUsedHandler(int t, const FileBrowserHandler* h, URLPatternSet p) |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 | 89 |
| 89 Profile* profile_; | 90 Profile* profile_; |
| 90 const GURL source_url_; | 91 const GURL source_url_; |
| 91 const std::string extension_id_; | 92 const std::string extension_id_; |
| 92 const std::string action_id_; | 93 const std::string action_id_; |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 } // namespace file_handler_util | 96 } // namespace file_handler_util |
| 96 | 97 |
| 97 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_HANDLER_UTIL_H_ | 98 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_HANDLER_UTIL_H_ |
| OLD | NEW |