Chromium Code Reviews| 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 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_UTIL_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_UTIL_H_ |
| 6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_UTIL_H_ | 6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | |
| 9 | |
| 8 namespace google_apis { | 10 namespace google_apis { |
| 9 namespace util { | 11 namespace util { |
| 10 | 12 |
| 11 // Returns true if Drive v2 API is enabled via commandline switch. | 13 // Returns true if Drive v2 API is enabled via commandline switch. |
| 12 bool IsDriveV2ApiEnabled(); | 14 bool IsDriveV2ApiEnabled(); |
| 13 | 15 |
| 14 } // namespace util | 16 } // namespace util |
| 17 | |
| 18 namespace drive { | |
|
hashimoto
2013/04/18 08:38:00
Do we need this "drive" namespace inside google_ap
hidehiko
2013/04/18 08:42:13
We're moving drive related code under google_apis
hashimoto
2013/04/18 08:45:06
Oh, I've surely taken a look at that issue, but co
| |
| 19 namespace util { | |
| 20 | |
| 21 // Escapes ' to \' in the |str|. This is designed to use for string value of | |
| 22 // search parameter on Drive API v2. | |
| 23 // See also: https://developers.google.com/drive/search-parameters | |
| 24 std::string EscapeQueryStringValue(const std::string& str); | |
| 25 | |
| 26 } // namespace util | |
| 27 } // namespace drive | |
| 15 } // namespace google_apis | 28 } // namespace google_apis |
| 16 | 29 |
| 17 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_UTIL_H_ | 30 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_UTIL_H_ |
| OLD | NEW |