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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_util.h

Issue 10693109: Use Drive v2 API: enable behind --enable-drive-api flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove boolean use_drive_api Created 8 years, 5 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 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Case 2: Normal files have both resource_id and md5. 86 // Case 2: Normal files have both resource_id and md5.
87 // Example: path="/user/GCache/v1/tmp/pdf:a1b2.01234567" => 87 // Example: path="/user/GCache/v1/tmp/pdf:a1b2.01234567" =>
88 // resource_id="pdf:a1b2", md5="01234567", extra_extension=""; 88 // resource_id="pdf:a1b2", md5="01234567", extra_extension="";
89 // Case 3: Mounted files have all three parts. 89 // Case 3: Mounted files have all three parts.
90 // Example: path="/user/GCache/v1/persistent/pdf:a1b2.01234567.mounted" => 90 // Example: path="/user/GCache/v1/persistent/pdf:a1b2.01234567.mounted" =>
91 // resource_id="pdf:a1b2", md5="01234567", extra_extension="mounted". 91 // resource_id="pdf:a1b2", md5="01234567", extra_extension="mounted".
92 void ParseCacheFilePath(const FilePath& path, 92 void ParseCacheFilePath(const FilePath& path,
93 std::string* resource_id, 93 std::string* resource_id,
94 std::string* md5, 94 std::string* md5,
95 std::string* extra_extension); 95 std::string* extra_extension);
96
97 // Returns true if Drive v2 API is enabled via commandline switch.
98 bool IsDriveV2ApiEnabled();
99
96 } // namespace util 100 } // namespace util
97 } // namespace gdata 101 } // namespace gdata
98 102
99 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UTIL_H_ 103 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698