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

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

Issue 10877006: Rename GDataErrorCode to DriveErrorCode, GDataFileError to DriveFileError (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 8 years, 4 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/threading/sequenced_worker_pool.h" 13 #include "base/threading/sequenced_worker_pool.h"
14 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" 14 #include "chrome/browser/chromeos/gdata/drive_errorcode.h"
15 #include "chrome/browser/profiles/profile_keyed_service.h" 15 #include "chrome/browser/profiles/profile_keyed_service.h"
16 #include "chrome/browser/profiles/profile_keyed_service_factory.h" 16 #include "chrome/browser/profiles/profile_keyed_service_factory.h"
17 17
18 class FilePath; 18 class FilePath;
19 19
20 namespace gdata { 20 namespace gdata {
21 21
22 class DriveCache; 22 class DriveCache;
23 class DriveServiceInterface; 23 class DriveServiceInterface;
24 class DriveWebAppsRegistry; 24 class DriveWebAppsRegistry;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698