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

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

Issue 10920091: Move Drive API files to google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reflect comments Created 8 years, 3 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_browser_private_api.h" 5 #include "chrome/browser/chromeos/extensions/file_browser_private_api.h"
6 6
7 #include <sys/statvfs.h> 7 #include <sys/statvfs.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/json/json_writer.h" 12 #include "base/json/json_writer.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "base/memory/singleton.h" 15 #include "base/memory/singleton.h"
16 #include "base/string_split.h" 16 #include "base/string_split.h"
17 #include "base/stringprintf.h" 17 #include "base/stringprintf.h"
18 #include "base/time.h" 18 #include "base/time.h"
19 #include "base/values.h" 19 #include "base/values.h"
20 #include "chrome/browser/chromeos/cros/cros_library.h" 20 #include "chrome/browser/chromeos/cros/cros_library.h"
21 #include "chrome/browser/chromeos/cros/network_library.h" 21 #include "chrome/browser/chromeos/cros/network_library.h"
22 #include "chrome/browser/chromeos/extensions/file_handler_util.h" 22 #include "chrome/browser/chromeos/extensions/file_handler_util.h"
23 #include "chrome/browser/chromeos/extensions/file_manager_util.h" 23 #include "chrome/browser/chromeos/extensions/file_manager_util.h"
24 #include "chrome/browser/chromeos/gdata/drive.pb.h" 24 #include "chrome/browser/chromeos/gdata/drive.pb.h"
25 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" 25 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h"
26 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" 26 #include "chrome/browser/chromeos/gdata/drive_service_interface.h"
27 #include "chrome/browser/chromeos/gdata/drive_system_service.h" 27 #include "chrome/browser/chromeos/gdata/drive_system_service.h"
28 #include "chrome/browser/chromeos/gdata/drive_webapps_registry.h" 28 #include "chrome/browser/chromeos/gdata/drive_webapps_registry.h"
29 #include "chrome/browser/chromeos/gdata/gdata_util.h"
30 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h"
31 #include "chrome/browser/chromeos/system/statistics_provider.h" 29 #include "chrome/browser/chromeos/system/statistics_provider.h"
32 #include "chrome/browser/extensions/extension_function_dispatcher.h" 30 #include "chrome/browser/extensions/extension_function_dispatcher.h"
33 #include "chrome/browser/extensions/extension_process_manager.h" 31 #include "chrome/browser/extensions/extension_process_manager.h"
34 #include "chrome/browser/extensions/extension_service.h" 32 #include "chrome/browser/extensions/extension_service.h"
35 #include "chrome/browser/extensions/extension_tab_util.h" 33 #include "chrome/browser/extensions/extension_tab_util.h"
36 #include "chrome/browser/extensions/process_map.h" 34 #include "chrome/browser/extensions/process_map.h"
35 #include "chrome/browser/google_apis/gdata_util.h"
36 #include "chrome/browser/google_apis/gdata_wapi_parser.h"
37 #include "chrome/browser/google_apis/operation_registry.h" 37 #include "chrome/browser/google_apis/operation_registry.h"
38 #include "chrome/browser/profiles/profile.h" 38 #include "chrome/browser/profiles/profile.h"
39 #include "chrome/browser/ui/browser.h" 39 #include "chrome/browser/ui/browser.h"
40 #include "chrome/browser/ui/browser_window.h" 40 #include "chrome/browser/ui/browser_window.h"
41 #include "chrome/browser/ui/views/select_file_dialog_extension.h" 41 #include "chrome/browser/ui/views/select_file_dialog_extension.h"
42 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" 42 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h"
43 #include "chrome/common/chrome_version_info.h" 43 #include "chrome/common/chrome_version_info.h"
44 #include "chrome/common/extensions/extension.h" 44 #include "chrome/common/extensions/extension.h"
45 #include "chrome/common/extensions/extension_constants.h" 45 #include "chrome/common/extensions/extension_constants.h"
46 #include "chrome/common/extensions/extension_icon_set.h" 46 #include "chrome/common/extensions/extension_icon_set.h"
(...skipping 2555 matching lines...) Expand 10 before | Expand all | Expand 10 after
2602 gdata::DriveSystemService* system_service = 2602 gdata::DriveSystemService* system_service =
2603 gdata::DriveSystemServiceFactory::GetForProfile(profile_); 2603 gdata::DriveSystemServiceFactory::GetForProfile(profile_);
2604 if (!system_service || !system_service->file_system()) 2604 if (!system_service || !system_service->file_system())
2605 return false; 2605 return false;
2606 2606
2607 FilePath directory_path = GetVirtualPathFromURL(GURL(file_url_as_string)); 2607 FilePath directory_path = GetVirtualPathFromURL(GURL(file_url_as_string));
2608 system_service->file_system()->RequestDirectoryRefresh(directory_path); 2608 system_service->file_system()->RequestDirectoryRefresh(directory_path);
2609 2609
2610 return true; 2610 return true;
2611 } 2611 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/external_filesystem_apitest.cc ('k') | chrome/browser/chromeos/gdata/auth_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698