OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSIONS_FILE_MANAGER_UTIL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_FILE_MANAGER_UTIL_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_FILE_MANAGER_UTIL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_FILE_MANAGER_UTIL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "chrome/browser/ui/shell_dialogs.h" | 10 #include "chrome/browser/ui/shell_dialogs.h" |
11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
12 | 12 |
13 class Profile; | 13 class Profile; |
14 | 14 |
| 15 extern const char kFileBrowserDomain[]; |
| 16 |
15 // Helper class for wiring file browser component extension with the rest of UI. | 17 // Helper class for wiring file browser component extension with the rest of UI. |
16 class FileManagerUtil { | 18 class FileManagerUtil { |
17 public: | 19 public: |
18 // Gets base file browser url. | 20 // Gets base file browser url. |
19 static GURL GetFileBrowserExtensionUrl(); | 21 static GURL GetFileBrowserExtensionUrl(); |
20 static GURL GetFileBrowserUrl(); | 22 static GURL GetFileBrowserUrl(); |
21 static GURL GetMediaPlayerUrl(); | 23 static GURL GetMediaPlayerUrl(); |
22 static GURL GetMediaPlayerPlaylistUrl(); | 24 static GURL GetMediaPlayerPlaylistUrl(); |
23 | 25 |
24 // Converts |full_file_path| into external filesystem: url. Returns false | 26 // Converts |full_file_path| into external filesystem: url. Returns false |
(...skipping 25 matching lines...) Expand all Loading... |
50 | 52 |
51 private: | 53 private: |
52 FileManagerUtil() {} | 54 FileManagerUtil() {} |
53 // Helper to convert numeric dialog type to a string. | 55 // Helper to convert numeric dialog type to a string. |
54 static std::string GetDialogTypeAsString(SelectFileDialog::Type dialog_type); | 56 static std::string GetDialogTypeAsString(SelectFileDialog::Type dialog_type); |
55 | 57 |
56 DISALLOW_COPY_AND_ASSIGN(FileManagerUtil); | 58 DISALLOW_COPY_AND_ASSIGN(FileManagerUtil); |
57 }; | 59 }; |
58 | 60 |
59 #endif // CHROME_BROWSER_EXTENSIONS_FILE_MANAGER_UTIL_H_ | 61 #endif // CHROME_BROWSER_EXTENSIONS_FILE_MANAGER_UTIL_H_ |
OLD | NEW |