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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host.h

Issue 666733003: Standardize usage of virtual/override/final in chrome/browser/sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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_GLUE_SYNC_BACKEND_HOST_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // An API to "host" the top level SyncAPI element. 45 // An API to "host" the top level SyncAPI element.
46 // 46 //
47 // This class handles dispatch of potentially blocking calls to appropriate 47 // This class handles dispatch of potentially blocking calls to appropriate
48 // threads and ensures that the SyncFrontend is only accessed on the UI loop. 48 // threads and ensures that the SyncFrontend is only accessed on the UI loop.
49 class SyncBackendHost : public sync_driver::BackendDataTypeConfigurer { 49 class SyncBackendHost : public sync_driver::BackendDataTypeConfigurer {
50 public: 50 public:
51 typedef syncer::SyncStatus Status; 51 typedef syncer::SyncStatus Status;
52 52
53 // Stubs used by implementing classes. 53 // Stubs used by implementing classes.
54 SyncBackendHost(); 54 SyncBackendHost();
55 virtual ~SyncBackendHost(); 55 ~SyncBackendHost() override;
56 56
57 // Called on the frontend's thread to kick off asynchronous initialization. 57 // Called on the frontend's thread to kick off asynchronous initialization.
58 // Optionally deletes the "Sync Data" folder during init in order to make 58 // Optionally deletes the "Sync Data" folder during init in order to make
59 // sure we're starting fresh. 59 // sure we're starting fresh.
60 // 60 //
61 // |report_unrecoverable_error_function| can be NULL. Note: 61 // |report_unrecoverable_error_function| can be NULL. Note:
62 // |unrecoverable_error_handler| may be invoked from any thread. 62 // |unrecoverable_error_handler| may be invoked from any thread.
63 virtual void Initialize( 63 virtual void Initialize(
64 sync_driver::SyncFrontend* frontend, 64 sync_driver::SyncFrontend* frontend,
65 scoped_ptr<base::Thread> sync_thread, 65 scoped_ptr<base::Thread> sync_thread,
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0; 213 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0;
214 214
215 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; 215 virtual base::MessageLoop* GetSyncLoopForTesting() = 0;
216 216
217 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 217 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
218 }; 218 };
219 219
220 } // namespace browser_sync 220 } // namespace browser_sync
221 221
222 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 222 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/search_engine_data_type_controller.h ('k') | chrome/browser/sync/glue/sync_backend_host_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698