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

Side by Side Diff: chrome/browser/enhanced_bookmarks/chrome_bookmark_server_cluster_service.h

Issue 648653003: Standardize usage of virtual/override/final in chrome/browser/ (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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_ENHANCED_BOOKMARKS_CHROME_BOOKMARK_SERVER_CLUSTER_SERVICE _H_ 5 #ifndef CHROME_BROWSER_ENHANCED_BOOKMARKS_CHROME_BOOKMARK_SERVER_CLUSTER_SERVICE _H_
6 #define CHROME_BROWSER_ENHANCED_BOOKMARKS_CHROME_BOOKMARK_SERVER_CLUSTER_SERVICE _H_ 6 #define CHROME_BROWSER_ENHANCED_BOOKMARKS_CHROME_BOOKMARK_SERVER_CLUSTER_SERVICE _H_
7 7
8 #include "chrome/browser/sync/profile_sync_service_observer.h" 8 #include "chrome/browser/sync/profile_sync_service_observer.h"
9 #include "components/enhanced_bookmarks/bookmark_server_cluster_service.h" 9 #include "components/enhanced_bookmarks/bookmark_server_cluster_service.h"
10 10
11 class ProfileSyncService; 11 class ProfileSyncService;
12 12
13 namespace enhanced_bookmarks { 13 namespace enhanced_bookmarks {
14 14
15 // A cluster service that invalidates its data when a sync operation finishes. 15 // A cluster service that invalidates its data when a sync operation finishes.
16 class ChromeBookmarkServerClusterService : public BookmarkServerClusterService, 16 class ChromeBookmarkServerClusterService : public BookmarkServerClusterService,
17 public ProfileSyncServiceObserver { 17 public ProfileSyncServiceObserver {
18 public: 18 public:
19 ChromeBookmarkServerClusterService( 19 ChromeBookmarkServerClusterService(
20 const std::string& application_language_code, 20 const std::string& application_language_code,
21 scoped_refptr<net::URLRequestContextGetter> request_context_getter, 21 scoped_refptr<net::URLRequestContextGetter> request_context_getter,
22 ProfileOAuth2TokenService* token_service, 22 ProfileOAuth2TokenService* token_service,
23 SigninManagerBase* signin_manager, 23 SigninManagerBase* signin_manager,
24 EnhancedBookmarkModel* enhanced_bookmark_model, 24 EnhancedBookmarkModel* enhanced_bookmark_model,
25 PrefService* pref_service, 25 PrefService* pref_service,
26 ProfileSyncService* sync_service); 26 ProfileSyncService* sync_service);
27 virtual ~ChromeBookmarkServerClusterService(); 27 ~ChromeBookmarkServerClusterService() override;
28 28
29 // BookmarkServerClusterService 29 // BookmarkServerClusterService
30 virtual void AddObserver(BookmarkServerServiceObserver* observer) override; 30 void AddObserver(BookmarkServerServiceObserver* observer) override;
31 31
32 // ProfileSyncServiceObserver implementation. 32 // ProfileSyncServiceObserver implementation.
33 virtual void OnStateChanged() override; 33 void OnStateChanged() override;
34 virtual void OnSyncCycleCompleted() override; 34 void OnSyncCycleCompleted() override;
35 35
36 private: 36 private:
37 // This class observes the sync service for changes. 37 // This class observes the sync service for changes.
38 ProfileSyncService* sync_service_; 38 ProfileSyncService* sync_service_;
39 bool sync_refresh_skipped_ = false; 39 bool sync_refresh_skipped_ = false;
40 40
41 DISALLOW_COPY_AND_ASSIGN(ChromeBookmarkServerClusterService); 41 DISALLOW_COPY_AND_ASSIGN(ChromeBookmarkServerClusterService);
42 }; 42 };
43 43
44 } // namespace enhanced_bookmarks 44 } // namespace enhanced_bookmarks
45 45
46 #endif // CHROME_BROWSER_ENHANCED_BOOKMARKS_CHROME_BOOKMARK_SERVER_CLUSTER_SERV ICE_H_ 46 #endif // CHROME_BROWSER_ENHANCED_BOOKMARKS_CHROME_BOOKMARK_SERVER_CLUSTER_SERV ICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698