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

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

Issue 10830353: Introduce InfoBarTabService API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments, merge to LKGR Created 8 years, 4 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 | 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_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h" 11 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h"
12 #include "content/public/browser/notification_observer.h" 12 #include "content/public/browser/notification_observer.h"
13 #include "content/public/browser/notification_registrar.h" 13 #include "content/public/browser/notification_registrar.h"
14 14
15 class ExtensionService; 15 class ExtensionService;
16 class InfoBarTabHelper;
16 class ThemeService; 17 class ThemeService;
17 18
18 namespace extensions { 19 namespace extensions {
19 class Extension; 20 class Extension;
20 } 21 }
21 22
22 // When a user installs a theme, we display it immediately, but provide an 23 // When a user installs a theme, we display it immediately, but provide an
23 // infobar allowing them to cancel. 24 // infobar allowing them to cancel.
24 class ThemeInstalledInfoBarDelegate : public ConfirmInfoBarDelegate, 25 class ThemeInstalledInfoBarDelegate : public ConfirmInfoBarDelegate,
25 public content::NotificationObserver { 26 public content::NotificationObserver {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 70
70 // Used to undo theme install. 71 // Used to undo theme install.
71 std::string previous_theme_id_; 72 std::string previous_theme_id_;
72 bool previous_using_native_theme_; 73 bool previous_using_native_theme_;
73 74
74 // Registers and unregisters us for notifications. 75 // Registers and unregisters us for notifications.
75 content::NotificationRegistrar registrar_; 76 content::NotificationRegistrar registrar_;
76 }; 77 };
77 78
78 #endif // CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ 79 #endif // CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698