| 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/drive/file_system_util.h" | 5 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/browser/chromeos/drive/drive_integration_service.h" | 21 #include "chrome/browser/chromeos/drive/drive_integration_service.h" |
| 22 #include "chrome/browser/chromeos/drive/file_system_interface.h" | 22 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
| 23 #include "chrome/browser/chromeos/drive/file_write_helper.h" | 23 #include "chrome/browser/chromeos/drive/file_write_helper.h" |
| 24 #include "chrome/browser/profiles/profile.h" | 24 #include "chrome/browser/profiles/profile.h" |
| 25 #include "chrome/common/chrome_constants.h" | 25 #include "chrome/common/chrome_constants.h" |
| 26 #include "chrome/common/chrome_paths_internal.h" | 26 #include "chrome/common/chrome_paths_internal.h" |
| 27 #include "chrome/common/url_constants.h" | 27 #include "chrome/common/url_constants.h" |
| 28 #include "chromeos/chromeos_constants.h" | 28 #include "chromeos/chromeos_constants.h" |
| 29 #include "content/public/browser/browser_thread.h" | 29 #include "content/public/browser/browser_thread.h" |
| 30 #include "net/base/escape.h" | 30 #include "net/base/escape.h" |
| 31 #include "webkit/fileapi/file_system_url.h" | 31 #include "webkit/common/fileapi/file_system_url.h" |
| 32 | 32 |
| 33 using content::BrowserThread; | 33 using content::BrowserThread; |
| 34 | 34 |
| 35 namespace drive { | 35 namespace drive { |
| 36 namespace util { | 36 namespace util { |
| 37 | 37 |
| 38 namespace { | 38 namespace { |
| 39 | 39 |
| 40 const char kDriveSpecialRootPath[] = "/special"; | 40 const char kDriveSpecialRootPath[] = "/special"; |
| 41 | 41 |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 GURL ReadUrlFromGDocFile(const base::FilePath& file_path) { | 438 GURL ReadUrlFromGDocFile(const base::FilePath& file_path) { |
| 439 return GURL(ReadStringFromGDocFile(file_path, "url")); | 439 return GURL(ReadStringFromGDocFile(file_path, "url")); |
| 440 } | 440 } |
| 441 | 441 |
| 442 std::string ReadResourceIdFromGDocFile(const base::FilePath& file_path) { | 442 std::string ReadResourceIdFromGDocFile(const base::FilePath& file_path) { |
| 443 return ReadStringFromGDocFile(file_path, "resource_id"); | 443 return ReadStringFromGDocFile(file_path, "resource_id"); |
| 444 } | 444 } |
| 445 | 445 |
| 446 } // namespace util | 446 } // namespace util |
| 447 } // namespace drive | 447 } // namespace drive |
| OLD | NEW |