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

Side by Side Diff: chrome/browser/sync_file_system/mock_remote_file_sync_service.h

Issue 11358211: Handle errors on the initialization of SyncFileSystemService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: +mock Created 8 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/mock_remote_file_sync_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void reset_conflict_files() { 61 void reset_conflict_files() {
62 conflict_file_urls_.clear(); 62 conflict_file_urls_.clear();
63 conflict_file_metadata_.clear(); 63 conflict_file_metadata_.clear();
64 } 64 }
65 65
66 private: 66 private:
67 typedef std::map<GURL, fileapi::FileSystemURLSet> OriginToURLSetMap; 67 typedef std::map<GURL, fileapi::FileSystemURLSet> OriginToURLSetMap;
68 typedef std::map<fileapi::FileSystemURL, fileapi::SyncFileMetadata, 68 typedef std::map<fileapi::FileSystemURL, fileapi::SyncFileMetadata,
69 fileapi::FileSystemURL::Comparator> FileMetadataMap; 69 fileapi::FileSystemURL::Comparator> FileMetadataMap;
70 70
71 void RegisterOriginForTrackingChangesStub(
72 const GURL& origin,
73 const fileapi::SyncStatusCallback& callback);
74 void UnregisterOriginForTrackingChangesStub(
75 const GURL& origin,
76 const fileapi::SyncStatusCallback& callback);
71 void ProcessRemoteChangeStub( 77 void ProcessRemoteChangeStub(
72 RemoteChangeProcessor* processor, 78 RemoteChangeProcessor* processor,
73 const fileapi::SyncFileCallback& callback); 79 const fileapi::SyncFileCallback& callback);
74 void GetConflictFilesStub( 80 void GetConflictFilesStub(
75 const GURL& origin, 81 const GURL& origin,
76 const fileapi::SyncFileSetCallback& callback); 82 const fileapi::SyncFileSetCallback& callback);
77 void GetRemoteFileMetadataStub( 83 void GetRemoteFileMetadataStub(
78 const fileapi::FileSystemURL& url, 84 const fileapi::FileSystemURL& url,
79 const fileapi::SyncFileMetadataCallback& callback); 85 const fileapi::SyncFileMetadataCallback& callback);
80 86
81 scoped_ptr<LocalChangeProcessor> local_change_processor_; 87 scoped_ptr<LocalChangeProcessor> local_change_processor_;
82 88
83 OriginToURLSetMap conflict_file_urls_; 89 OriginToURLSetMap conflict_file_urls_;
84 FileMetadataMap conflict_file_metadata_; 90 FileMetadataMap conflict_file_metadata_;
85 91
86 DISALLOW_COPY_AND_ASSIGN(MockRemoteFileSyncService); 92 DISALLOW_COPY_AND_ASSIGN(MockRemoteFileSyncService);
87 }; 93 };
88 94
89 } // namespace sync_file_system 95 } // namespace sync_file_system
90 96
91 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ 97 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/mock_remote_file_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698