Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: chrome/browser/chromeos/file_manager/open_util.cc

Issue 2685453002: Move file_handlers API from //chrome to //extensions (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "chrome/browser/chromeos/file_manager/open_util.h" 5 #include "chrome/browser/chromeos/file_manager/open_util.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 "base/bind.h" 11 #include "base/bind.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "chrome/browser/chromeos/drive/file_system_util.h" 15 #include "chrome/browser/chromeos/drive/file_system_util.h"
16 #include "chrome/browser/chromeos/file_manager/app_id.h" 16 #include "chrome/browser/chromeos/file_manager/app_id.h"
17 #include "chrome/browser/chromeos/file_manager/file_tasks.h" 17 #include "chrome/browser/chromeos/file_manager/file_tasks.h"
18 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" 18 #include "chrome/browser/chromeos/file_manager/fileapi_util.h"
19 #include "chrome/browser/chromeos/file_manager/path_util.h" 19 #include "chrome/browser/chromeos/file_manager/path_util.h"
20 #include "chrome/browser/chromeos/file_manager/url_util.h" 20 #include "chrome/browser/chromeos/file_manager/url_util.h"
21 #include "chrome/browser/extensions/api/file_handlers/directory_util.h" 21 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/extensions/api/file_handlers/mime_util.h"
23 #include "content/public/browser/browser_thread.h" 22 #include "content/public/browser/browser_thread.h"
24 #include "content/public/browser/user_metrics.h" 23 #include "content/public/browser/user_metrics.h"
24 #include "extensions/browser/api/file_handlers/directory_util.h"
25 #include "extensions/browser/api/file_handlers/mime_util.h"
25 #include "extensions/browser/entry_info.h" 26 #include "extensions/browser/entry_info.h"
26 #include "storage/browser/fileapi/file_system_backend.h" 27 #include "storage/browser/fileapi/file_system_backend.h"
27 #include "storage/browser/fileapi/file_system_context.h" 28 #include "storage/browser/fileapi/file_system_context.h"
28 #include "storage/browser/fileapi/file_system_operation_runner.h" 29 #include "storage/browser/fileapi/file_system_operation_runner.h"
29 #include "storage/browser/fileapi/file_system_url.h" 30 #include "storage/browser/fileapi/file_system_url.h"
30 31
31 using content::BrowserThread; 32 using content::BrowserThread;
32 using storage::FileSystemURL; 33 using storage::FileSystemURL;
33 34
34 namespace file_manager { 35 namespace file_manager {
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 OpenFileManagerWithInternalActionId(profile, url, "select"); 205 OpenFileManagerWithInternalActionId(profile, url, "select");
205 callback.Run(platform_util::OPEN_SUCCEEDED); 206 callback.Run(platform_util::OPEN_SUCCEEDED);
206 } 207 }
207 208
208 void DisableShellOperationsForTesting() { 209 void DisableShellOperationsForTesting() {
209 shell_operations_allowed = false; 210 shell_operations_allowed = false;
210 } 211 }
211 212
212 } // namespace util 213 } // namespace util
213 } // namespace file_manager 214 } // namespace file_manager
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/file_manager/file_tasks.cc ('k') | chrome/browser/chromeos/fileapi/external_file_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698