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

Side by Side Diff: chrome/browser/ui/webui/ntp/foreign_session_handler.h

Issue 8604005: Add OVERRIDE to chrome/browser/ui/webui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WEBUI_NTP_FOREIGN_SESSION_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_FOREIGN_SESSION_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_FOREIGN_SESSION_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_FOREIGN_SESSION_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "chrome/browser/sessions/session_service.h" 11 #include "chrome/browser/sessions/session_service.h"
12 #include "chrome/browser/sync/glue/session_model_associator.h" 12 #include "chrome/browser/sync/glue/session_model_associator.h"
13 #include "content/browser/webui/web_ui.h" 13 #include "content/browser/webui/web_ui.h"
14 #include "content/public/browser/notification_observer.h" 14 #include "content/public/browser/notification_observer.h"
15 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
16 16
17 namespace browser_sync { 17 namespace browser_sync {
18 18
19 class ForeignSessionHandler : public WebUIMessageHandler, 19 class ForeignSessionHandler : public WebUIMessageHandler,
20 public content::NotificationObserver { 20 public content::NotificationObserver {
21 public: 21 public:
22 // WebUIMessageHandler implementation. 22 // WebUIMessageHandler implementation.
23 virtual void RegisterMessages(); 23 virtual void RegisterMessages() OVERRIDE;
24 24
25 ForeignSessionHandler(); 25 ForeignSessionHandler();
26 virtual ~ForeignSessionHandler() {} 26 virtual ~ForeignSessionHandler() {}
27 27
28 private: 28 private:
29 // Used to register ForeignSessionHandler for notifications. 29 // Used to register ForeignSessionHandler for notifications.
30 void Init(); 30 void Init();
31 31
32 // Determines how ForeignSessionHandler will interact with the new tab page. 32 // Determines how ForeignSessionHandler will interact with the new tab page.
33 virtual void Observe(int type, 33 virtual void Observe(int type,
(...skipping 20 matching lines...) Expand all
54 54
55 // The Registrar used to register ForeignSessionHandler for notifications. 55 // The Registrar used to register ForeignSessionHandler for notifications.
56 content::NotificationRegistrar registrar_; 56 content::NotificationRegistrar registrar_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHandler); 58 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHandler);
59 }; 59 };
60 60
61 } // namespace browser_sync 61 } // namespace browser_sync
62 62
63 #endif // CHROME_BROWSER_UI_WEBUI_NTP_FOREIGN_SESSION_HANDLER_H_ 63 #endif // CHROME_BROWSER_UI_WEBUI_NTP_FOREIGN_SESSION_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/media/media_internals_proxy.h ('k') | chrome/browser/ui/webui/ntp/new_tab_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698