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 #include "chrome/browser/extensions/file_manager_util.h" | 4 #include "chrome/browser/extensions/file_manager_util.h" |
5 | 5 |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "net/base/escape.h" | 21 #include "net/base/escape.h" |
22 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
23 #include "webkit/fileapi/file_system_context.h" | 23 #include "webkit/fileapi/file_system_context.h" |
24 #include "webkit/fileapi/file_system_mount_point_provider.h" | 24 #include "webkit/fileapi/file_system_mount_point_provider.h" |
25 #include "webkit/fileapi/file_system_util.h" | 25 #include "webkit/fileapi/file_system_util.h" |
26 | 26 |
27 #if defined(OS_CHROMEOS) | 27 #if defined(OS_CHROMEOS) |
28 #include "chrome/browser/chromeos/media/media_player.h" | 28 #include "chrome/browser/chromeos/media/media_player.h" |
29 #endif | 29 #endif |
30 | 30 |
| 31 using content::BrowserThread; |
| 32 |
31 #define FILEBROWSER_DOMAIN "hhaomjibdihmijegdhdafkllkbggdgoj" | 33 #define FILEBROWSER_DOMAIN "hhaomjibdihmijegdhdafkllkbggdgoj" |
32 const char kFileBrowserDomain[] = FILEBROWSER_DOMAIN; | 34 const char kFileBrowserDomain[] = FILEBROWSER_DOMAIN; |
33 #define FILEBROWSER_URL(PATH) \ | 35 #define FILEBROWSER_URL(PATH) \ |
34 ("chrome-extension://" FILEBROWSER_DOMAIN "/" PATH) | 36 ("chrome-extension://" FILEBROWSER_DOMAIN "/" PATH) |
35 // This is the "well known" url for the file manager extension from | 37 // This is the "well known" url for the file manager extension from |
36 // browser/resources/file_manager. In the future we may provide a way to swap | 38 // browser/resources/file_manager. In the future we may provide a way to swap |
37 // out this file manager for an aftermarket part, but not yet. | 39 // out this file manager for an aftermarket part, but not yet. |
38 const char kFileBrowserExtensionUrl[] = FILEBROWSER_URL(""); | 40 const char kFileBrowserExtensionUrl[] = FILEBROWSER_URL(""); |
39 const char kBaseFileBrowserUrl[] = FILEBROWSER_URL("main.html"); | 41 const char kBaseFileBrowserUrl[] = FILEBROWSER_URL("main.html"); |
40 const char kMediaPlayerUrl[] = FILEBROWSER_URL("mediaplayer.html"); | 42 const char kMediaPlayerUrl[] = FILEBROWSER_URL("mediaplayer.html"); |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 case SelectFileDialog::SELECT_OPEN_MULTI_FILE: | 311 case SelectFileDialog::SELECT_OPEN_MULTI_FILE: |
310 type_str = "open-multi-file"; | 312 type_str = "open-multi-file"; |
311 break; | 313 break; |
312 | 314 |
313 default: | 315 default: |
314 NOTREACHED(); | 316 NOTREACHED(); |
315 } | 317 } |
316 | 318 |
317 return type_str; | 319 return type_str; |
318 } | 320 } |
OLD | NEW |