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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.cc

Issue 15658004: Split FileAPI code for common|common_child|renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 | Annotate | Revision Log
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/extensions/file_manager/file_browser_private_a pi.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a pi.h"
6 6
7 #include <sys/stat.h> 7 #include <sys/stat.h>
8 #include <sys/statvfs.h> 8 #include <sys/statvfs.h>
9 #include <sys/types.h> 9 #include <sys/types.h>
10 #include <utime.h> 10 #include <utime.h>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 #include "net/base/mime_util.h" 78 #include "net/base/mime_util.h"
79 #include "net/base/network_change_notifier.h" 79 #include "net/base/network_change_notifier.h"
80 #include "ui/base/l10n/l10n_util.h" 80 #include "ui/base/l10n/l10n_util.h"
81 #include "ui/shell_dialogs/selected_file_info.h" 81 #include "ui/shell_dialogs/selected_file_info.h"
82 #include "ui/webui/web_ui_util.h" 82 #include "ui/webui/web_ui_util.h"
83 #include "webkit/browser/fileapi/file_system_context.h" 83 #include "webkit/browser/fileapi/file_system_context.h"
84 #include "webkit/browser/fileapi/file_system_file_util.h" 84 #include "webkit/browser/fileapi/file_system_file_util.h"
85 #include "webkit/browser/fileapi/file_system_operation_context.h" 85 #include "webkit/browser/fileapi/file_system_operation_context.h"
86 #include "webkit/browser/fileapi/file_system_url.h" 86 #include "webkit/browser/fileapi/file_system_url.h"
87 #include "webkit/chromeos/fileapi/cros_mount_point_provider.h" 87 #include "webkit/chromeos/fileapi/cros_mount_point_provider.h"
88 #include "webkit/fileapi/file_system_types.h" 88 #include "webkit/common/fileapi/file_system_types.h"
89 #include "webkit/fileapi/file_system_util.h" 89 #include "webkit/common/fileapi/file_system_util.h"
90 90
91 using extensions::app_file_handler_util::FindFileHandlersForFiles; 91 using extensions::app_file_handler_util::FindFileHandlersForFiles;
92 using extensions::app_file_handler_util::PathAndMimeTypeSet; 92 using extensions::app_file_handler_util::PathAndMimeTypeSet;
93 using chromeos::disks::DiskMountManager; 93 using chromeos::disks::DiskMountManager;
94 using content::BrowserContext; 94 using content::BrowserContext;
95 using content::BrowserThread; 95 using content::BrowserThread;
96 using content::ChildProcessSecurityPolicy; 96 using content::ChildProcessSecurityPolicy;
97 using content::SiteInstance; 97 using content::SiteInstance;
98 using content::WebContents; 98 using content::WebContents;
99 using extensions::Extension; 99 using extensions::Extension;
(...skipping 3086 matching lines...) Expand 10 before | Expand all | Expand 10 after
3186 OpenNewWindowFunction::OpenNewWindowFunction() {} 3186 OpenNewWindowFunction::OpenNewWindowFunction() {}
3187 3187
3188 OpenNewWindowFunction::~OpenNewWindowFunction() {} 3188 OpenNewWindowFunction::~OpenNewWindowFunction() {}
3189 3189
3190 bool OpenNewWindowFunction::RunImpl() { 3190 bool OpenNewWindowFunction::RunImpl() {
3191 std::string url; 3191 std::string url;
3192 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &url)); 3192 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &url));
3193 file_manager_util::OpenNewWindow(profile_, GURL(url)); 3193 file_manager_util::OpenNewWindow(profile_, GURL(url));
3194 return true; 3194 return true;
3195 } 3195 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698