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

Side by Side Diff: chrome/browser/extensions/api/management/management_api.h

Issue 11366074: Coalesce event router Init calls into their constructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: aa Created 8 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) 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_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 #include "chrome/browser/extensions/extension_install_prompt.h" 10 #include "chrome/browser/extensions/extension_install_prompt.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 std::string extension_id_; 138 std::string extension_id_;
139 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_; 139 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_;
140 }; 140 };
141 141
142 class ExtensionManagementEventRouter : public content::NotificationObserver { 142 class ExtensionManagementEventRouter : public content::NotificationObserver {
143 public: 143 public:
144 explicit ExtensionManagementEventRouter(Profile* profile); 144 explicit ExtensionManagementEventRouter(Profile* profile);
145 virtual ~ExtensionManagementEventRouter(); 145 virtual ~ExtensionManagementEventRouter();
146 146
147 void Init();
148
149 private: 147 private:
150 // content::NotificationObserver implementation. 148 // content::NotificationObserver implementation.
151 virtual void Observe(int type, 149 virtual void Observe(int type,
152 const content::NotificationSource& source, 150 const content::NotificationSource& source,
153 const content::NotificationDetails& details) OVERRIDE; 151 const content::NotificationDetails& details) OVERRIDE;
154 152
155 content::NotificationRegistrar registrar_; 153 content::NotificationRegistrar registrar_;
156 154
157 Profile* profile_; 155 Profile* profile_;
158 156
159 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementEventRouter); 157 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementEventRouter);
160 }; 158 };
161 159
162 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_ 160 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698