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_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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 void Initialize(DriveServiceInterface* drive_service, | 62 void Initialize(DriveServiceInterface* drive_service, |
63 const FilePath& cache_root); | 63 const FilePath& cache_root); |
64 | 64 |
65 // Registers remote file system proxy for drive mount point. | 65 // Registers remote file system proxy for drive mount point. |
66 void AddDriveMountPoint(); | 66 void AddDriveMountPoint(); |
67 // Unregisters drive mount point from File API. | 67 // Unregisters drive mount point from File API. |
68 void RemoveDriveMountPoint(); | 68 void RemoveDriveMountPoint(); |
69 | 69 |
70 // Adds back the drive mount point. Used to implement ClearCache(). | 70 // Adds back the drive mount point. Used to implement ClearCache(). |
71 void AddBackDriveMountPoint(const base::Callback<void(bool)>& callback, | 71 void AddBackDriveMountPoint(const base::Callback<void(bool)>& callback, |
72 GDataFileError error, | 72 DriveFileError error, |
73 const FilePath& file_path); | 73 const FilePath& file_path); |
74 | 74 |
75 friend class GDataSystemServiceFactory; | 75 friend class GDataSystemServiceFactory; |
76 | 76 |
77 Profile* profile_; | 77 Profile* profile_; |
78 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 78 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
79 DriveCache* cache_; | 79 DriveCache* cache_; |
80 scoped_ptr<DriveServiceInterface> drive_service_; | 80 scoped_ptr<DriveServiceInterface> drive_service_; |
81 scoped_ptr<GDataUploader> uploader_; | 81 scoped_ptr<GDataUploader> uploader_; |
82 scoped_ptr<DriveWebAppsRegistry> webapps_registry_; | 82 scoped_ptr<DriveWebAppsRegistry> webapps_registry_; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 virtual ~GDataSystemServiceFactory(); | 124 virtual ~GDataSystemServiceFactory(); |
125 | 125 |
126 // ProfileKeyedServiceFactory: | 126 // ProfileKeyedServiceFactory: |
127 virtual ProfileKeyedService* BuildServiceInstanceFor( | 127 virtual ProfileKeyedService* BuildServiceInstanceFor( |
128 Profile* profile) const OVERRIDE; | 128 Profile* profile) const OVERRIDE; |
129 }; | 129 }; |
130 | 130 |
131 } // namespace gdata | 131 } // namespace gdata |
132 | 132 |
133 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYSTEM_SERVICE_H_ | 133 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYSTEM_SERVICE_H_ |
OLD | NEW |