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

Side by Side Diff: google_apis/drive/gdata_wapi_parser.h

Issue 103013004: Google drive forms should not appear in the "offline" tab of Files.app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 GOOGLE_APIS_DRIVE_GDATA_WAPI_PARSER_H_ 5 #ifndef GOOGLE_APIS_DRIVE_GDATA_WAPI_PARSER_H_
6 #define GOOGLE_APIS_DRIVE_GDATA_WAPI_PARSER_H_ 6 #define GOOGLE_APIS_DRIVE_GDATA_WAPI_PARSER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 // Classes of EntryKind. Used for ClassifyEntryKind(). 502 // Classes of EntryKind. Used for ClassifyEntryKind().
503 enum EntryKindClass { 503 enum EntryKindClass {
504 KIND_OF_NONE = 0, 504 KIND_OF_NONE = 0,
505 KIND_OF_HOSTED_DOCUMENT = 1, 505 KIND_OF_HOSTED_DOCUMENT = 1,
506 KIND_OF_GOOGLE_DOCUMENT = 1 << 1, 506 KIND_OF_GOOGLE_DOCUMENT = 1 << 1,
507 KIND_OF_EXTERNAL_DOCUMENT = 1 << 2, 507 KIND_OF_EXTERNAL_DOCUMENT = 1 << 2,
508 KIND_OF_FOLDER = 1 << 3, 508 KIND_OF_FOLDER = 1 << 3,
509 KIND_OF_FILE = 1 << 4, 509 KIND_OF_FILE = 1 << 4,
510 }; 510 };
511 511
512 // Returns the kind enum corresponding to the extension in form ".xxx".
513 static DriveEntryKind GetEntryKindFromExtension(const std::string& extension);
514
512 // Classifies the EntryKind. The returned value is a bitmask of 515 // Classifies the EntryKind. The returned value is a bitmask of
513 // EntryKindClass. For example, DOCUMENT is classified as 516 // EntryKindClass. For example, DOCUMENT is classified as
514 // KIND_OF_HOSTED_DOCUMENT and KIND_OF_GOOGLE_DOCUMENT, hence the returned 517 // KIND_OF_HOSTED_DOCUMENT and KIND_OF_GOOGLE_DOCUMENT, hence the returned
515 // value is KIND_OF_HOSTED_DOCUMENT | KIND_OF_GOOGLE_DOCUMENT. 518 // value is KIND_OF_HOSTED_DOCUMENT | KIND_OF_GOOGLE_DOCUMENT.
516 static int ClassifyEntryKind(DriveEntryKind kind); 519 static int ClassifyEntryKind(DriveEntryKind kind);
517 520
518 // Classifies the EntryKind by the file extension of specific path. The 521 // Classifies the EntryKind by the file extension of specific path. The
519 // returned value is a bitmask of EntryKindClass. See also ClassifyEntryKind. 522 // returned value is a bitmask of EntryKindClass. See also ClassifyEntryKind.
520 static int ClassifyEntryKindByFileExtension(const base::FilePath& file); 523 static int ClassifyEntryKindByFileExtension(const base::FilePath& file);
521 524
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 int64 largest_changestamp_; 860 int64 largest_changestamp_;
858 ScopedVector<InstalledApp> installed_apps_; 861 ScopedVector<InstalledApp> installed_apps_;
859 862
860 DISALLOW_COPY_AND_ASSIGN(AccountMetadata); 863 DISALLOW_COPY_AND_ASSIGN(AccountMetadata);
861 }; 864 };
862 865
863 866
864 } // namespace google_apis 867 } // namespace google_apis
865 868
866 #endif // GOOGLE_APIS_DRIVE_GDATA_WAPI_PARSER_H_ 869 #endif // GOOGLE_APIS_DRIVE_GDATA_WAPI_PARSER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/search_metadata.cc ('k') | google_apis/drive/gdata_wapi_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698