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

Side by Side Diff: chrome/browser/ui/tabs/pinned_tab_service.h

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (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_UI_TABS_PINNED_TAB_SERVICE_H_ 5 #ifndef CHROME_BROWSER_UI_TABS_PINNED_TAB_SERVICE_H_
6 #define CHROME_BROWSER_UI_TABS_PINNED_TAB_SERVICE_H_ 6 #define CHROME_BROWSER_UI_TABS_PINNED_TAB_SERVICE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "components/keyed_service/core/keyed_service.h" 9 #include "components/keyed_service/core/keyed_service.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
11 #include "content/public/browser/notification_registrar.h" 11 #include "content/public/browser/notification_registrar.h"
12 12
13 class Profile; 13 class Profile;
14 14
15 // PinnedTabService is responsible for updating preferences with the set of 15 // PinnedTabService is responsible for updating preferences with the set of
16 // pinned tabs to restore at startup. PinnedTabService listens for the 16 // pinned tabs to restore at startup. PinnedTabService listens for the
17 // appropriate set of notifications to know it should update preferences. 17 // appropriate set of notifications to know it should update preferences.
18 class PinnedTabService : public content::NotificationObserver, 18 class PinnedTabService : public content::NotificationObserver,
19 public KeyedService { 19 public KeyedService {
20 public: 20 public:
21 explicit PinnedTabService(Profile* profile); 21 explicit PinnedTabService(Profile* profile);
22 22
23 private: 23 private:
24 // content::NotificationObserver. 24 // content::NotificationObserver.
25 virtual void Observe(int type, 25 virtual void Observe(int type,
26 const content::NotificationSource& source, 26 const content::NotificationSource& source,
27 const content::NotificationDetails& details) OVERRIDE; 27 const content::NotificationDetails& details) override;
28 28
29 Profile* profile_; 29 Profile* profile_;
30 30
31 // True if we should save the pinned tabs when a browser window closes or the 31 // True if we should save the pinned tabs when a browser window closes or the
32 // user exits the application. 32 // user exits the application.
33 bool save_pinned_tabs_; 33 bool save_pinned_tabs_;
34 34
35 // True if there is at least one normal browser for our profile. 35 // True if there is at least one normal browser for our profile.
36 bool has_normal_browser_; 36 bool has_normal_browser_;
37 37
38 content::NotificationRegistrar registrar_; 38 content::NotificationRegistrar registrar_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(PinnedTabService); 40 DISALLOW_COPY_AND_ASSIGN(PinnedTabService);
41 }; 41 };
42 42
43 #endif // CHROME_BROWSER_UI_TABS_PINNED_TAB_SERVICE_H_ 43 #endif // CHROME_BROWSER_UI_TABS_PINNED_TAB_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tab_modal_confirm_dialog_delegate.h ('k') | chrome/browser/ui/tabs/pinned_tab_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698