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

Side by Side Diff: chrome/browser/extensions/state_store_notification_observer.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (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_EXTENSIONS_STATE_STORE_NOTIFICATION_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_STATE_STORE_NOTIFICATION_OBSERVER_H_
6 #define CHROME_BROWSER_EXTENSIONS_STATE_STORE_NOTIFICATION_OBSERVER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_STATE_STORE_NOTIFICATION_OBSERVER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.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 namespace extensions { 13 namespace extensions {
14 class StateStore; 14 class StateStore;
15 15
16 // Initializes the StateStore when session restore is complete, for example when 16 // Initializes the StateStore when session restore is complete, for example when
17 // page load notifications are not sent ("Continue where I left off"). 17 // page load notifications are not sent ("Continue where I left off").
18 // http://crbug.com/230481 18 // http://crbug.com/230481
19 class StateStoreNotificationObserver : public content::NotificationObserver { 19 class StateStoreNotificationObserver : public content::NotificationObserver {
20 public: 20 public:
21 explicit StateStoreNotificationObserver(StateStore* state_store); 21 explicit StateStoreNotificationObserver(StateStore* state_store);
22 virtual ~StateStoreNotificationObserver(); 22 virtual ~StateStoreNotificationObserver();
23 23
24 // content::NotificationObserver overrides: 24 // content::NotificationObserver overrides:
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 private: 29 private:
30 StateStore* state_store_; // Not owned. 30 StateStore* state_store_; // Not owned.
31 content::NotificationRegistrar registrar_; 31 content::NotificationRegistrar registrar_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(StateStoreNotificationObserver); 33 DISALLOW_COPY_AND_ASSIGN(StateStoreNotificationObserver);
34 }; 34 };
35 35
36 } // namespace extensions 36 } // namespace extensions
37 37
38 #endif // CHROME_BROWSER_EXTENSIONS_STATE_STORE_NOTIFICATION_OBSERVER_H_ 38 #endif // CHROME_BROWSER_EXTENSIONS_STATE_STORE_NOTIFICATION_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698