OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/chromeos/extensions/file_manager/private_api_tasks.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_tasks.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "chrome/browser/chromeos/drive/file_system_util.h" | 11 #include "chrome/browser/chromeos/drive/file_system_util.h" |
12 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" | 12 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" |
13 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" | 13 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" |
14 #include "chrome/browser/extensions/api/file_handlers/mime_util.h" | 14 #include "chrome/browser/extensions/api/file_handlers/mime_util.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
17 #include "net/base/filename_util.h" | 17 #include "net/base/filename_util.h" |
18 #include "webkit/browser/fileapi/file_system_context.h" | 18 #include "storage/browser/fileapi/file_system_context.h" |
19 #include "webkit/browser/fileapi/file_system_url.h" | 19 #include "storage/browser/fileapi/file_system_url.h" |
20 | 20 |
21 using content::BrowserThread; | 21 using content::BrowserThread; |
22 using storage::FileSystemURL; | 22 using storage::FileSystemURL; |
23 | 23 |
24 namespace extensions { | 24 namespace extensions { |
25 namespace { | 25 namespace { |
26 | 26 |
27 // Error messages. | 27 // Error messages. |
28 const char kInvalidTask[] = "Invalid task: "; | 28 const char kInvalidTask[] = "Invalid task: "; |
29 const char kInvalidFileUrl[] = "Invalid file URL"; | 29 const char kInvalidFileUrl[] = "Invalid file URL"; |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 SetResult(new base::FundamentalValue(true)); | 224 SetResult(new base::FundamentalValue(true)); |
225 return true; | 225 return true; |
226 } | 226 } |
227 | 227 |
228 file_manager::file_tasks::UpdateDefaultTask( | 228 file_manager::file_tasks::UpdateDefaultTask( |
229 GetProfile()->GetPrefs(), params->task_id, suffixes, mime_types); | 229 GetProfile()->GetPrefs(), params->task_id, suffixes, mime_types); |
230 return true; | 230 return true; |
231 } | 231 } |
232 | 232 |
233 } // namespace extensions | 233 } // namespace extensions |
OLD | NEW |