OLD | NEW |
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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 #if defined(OS_CHROMEOS) | 59 #if defined(OS_CHROMEOS) |
60 #include "chrome/browser/chromeos/disks/disk_mount_manager.h" | 60 #include "chrome/browser/chromeos/disks/disk_mount_manager.h" |
61 #endif | 61 #endif |
62 | 62 |
63 using chromeos::disks::DiskMountManager; | 63 using chromeos::disks::DiskMountManager; |
64 using content::BrowserContext; | 64 using content::BrowserContext; |
65 using content::BrowserThread; | 65 using content::BrowserThread; |
66 using content::ChildProcessSecurityPolicy; | 66 using content::ChildProcessSecurityPolicy; |
67 using content::SiteInstance; | 67 using content::SiteInstance; |
68 using content::WebContents; | 68 using content::WebContents; |
| 69 using extensions::Extension; |
69 using file_handler_util::FileTaskExecutor; | 70 using file_handler_util::FileTaskExecutor; |
70 using gdata::GDataOperationRegistry; | 71 using gdata::GDataOperationRegistry; |
71 | 72 |
72 namespace { | 73 namespace { |
73 | 74 |
74 // Error messages. | 75 // Error messages. |
75 const char kFileError[] = "File error %d"; | 76 const char kFileError[] = "File error %d"; |
76 const char kInvalidFileUrl[] = "Invalid file URL"; | 77 const char kInvalidFileUrl[] = "Invalid file URL"; |
77 const char kVolumeDevicePathNotFound[] = "Device path not found"; | 78 const char kVolumeDevicePathNotFound[] = "Device path not found"; |
78 | 79 |
(...skipping 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2121 else if (active_network->type() == chromeos::TYPE_CELLULAR) | 2122 else if (active_network->type() == chromeos::TYPE_CELLULAR) |
2122 type_string = "cellular"; | 2123 type_string = "cellular"; |
2123 else | 2124 else |
2124 type_string = "ethernet"; // Currently we do not care about other types. | 2125 type_string = "ethernet"; // Currently we do not care about other types. |
2125 | 2126 |
2126 value->SetString("type", type_string); | 2127 value->SetString("type", type_string); |
2127 result_.reset(value.release()); | 2128 result_.reset(value.release()); |
2128 | 2129 |
2129 return true; | 2130 return true; |
2130 } | 2131 } |
OLD | NEW |