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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_system_service.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: . 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_SYSTEM_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYSTEM_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYSTEM_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYSTEM_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/chromeos/gdata/gdata_file_system.h" 10 #include "chrome/browser/chromeos/gdata/gdata_file_system.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 Profile* profile_; 64 Profile* profile_;
65 const base::SequencedWorkerPool::SequenceToken sequence_token_; 65 const base::SequencedWorkerPool::SequenceToken sequence_token_;
66 GDataCache* cache_; 66 GDataCache* cache_;
67 scoped_ptr<DocumentsServiceInterface> documents_service_; 67 scoped_ptr<DocumentsServiceInterface> documents_service_;
68 scoped_ptr<GDataUploader> uploader_; 68 scoped_ptr<GDataUploader> uploader_;
69 scoped_ptr<DriveWebAppsRegistry> webapps_registry_; 69 scoped_ptr<DriveWebAppsRegistry> webapps_registry_;
70 scoped_ptr<GDataFileSystem> file_system_; 70 scoped_ptr<GDataFileSystem> file_system_;
71 scoped_ptr<GDataDownloadObserver> download_observer_; 71 scoped_ptr<GDataDownloadObserver> download_observer_;
72 scoped_ptr<GDataSyncClient> sync_client_; 72 scoped_ptr<GDataSyncClient> sync_client_;
73 73
74 // If true use Drive v2 API instead of Document List API.
75 bool use_drive_api_;
76
74 DISALLOW_COPY_AND_ASSIGN(GDataSystemService); 77 DISALLOW_COPY_AND_ASSIGN(GDataSystemService);
75 }; 78 };
76 79
77 // Singleton that owns all GDataSystemServices and associates them with 80 // Singleton that owns all GDataSystemServices and associates them with
78 // Profiles. 81 // Profiles.
79 class GDataSystemServiceFactory : public ProfileKeyedServiceFactory { 82 class GDataSystemServiceFactory : public ProfileKeyedServiceFactory {
80 public: 83 public:
81 // Returns the GDataSystemService for |profile|, creating it if it is not 84 // Returns the GDataSystemService for |profile|, creating it if it is not
82 // yet created. 85 // yet created.
83 static GDataSystemService* GetForProfile(Profile* profile); 86 static GDataSystemService* GetForProfile(Profile* profile);
(...skipping 11 matching lines...) Expand all
95 virtual ~GDataSystemServiceFactory(); 98 virtual ~GDataSystemServiceFactory();
96 99
97 // ProfileKeyedServiceFactory: 100 // ProfileKeyedServiceFactory:
98 virtual ProfileKeyedService* BuildServiceInstanceFor( 101 virtual ProfileKeyedService* BuildServiceInstanceFor(
99 Profile* profile) const OVERRIDE; 102 Profile* profile) const OVERRIDE;
100 }; 103 };
101 104
102 } // namespace gdata 105 } // namespace gdata
103 106
104 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYSTEM_SERVICE_H_ 107 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYSTEM_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698