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

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

Issue 10830036: Moved the AppNotification system into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq 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
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_APP_NOTIFY_CHANNEL_UI_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_H_
6 #define CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_H_ 6 #define CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 class Profile; 10 class Profile;
11 class TabContents; 11 class TabContents;
12 12
13 namespace extensions {
14
13 // An interface for prompting a user to sign in to sync so that we can create 15 // An interface for prompting a user to sign in to sync so that we can create
14 // an app notification channel for one of their apps. 16 // an app notification channel for one of their apps.
15 class AppNotifyChannelUI { 17 class AppNotifyChannelUI {
16 public: 18 public:
17 virtual ~AppNotifyChannelUI() {} 19 virtual ~AppNotifyChannelUI() {}
18 20
19 // Used to customize the UI we show. 21 // Used to customize the UI we show.
20 enum UIType { 22 enum UIType {
21 // Do not prompt the user with an infobar. 23 // Do not prompt the user with an infobar.
22 NO_INFOBAR, 24 NO_INFOBAR,
(...skipping 16 matching lines...) Expand all
39 // instance. 41 // instance.
40 virtual void PromptSyncSetup(Delegate* delegate) = 0; 42 virtual void PromptSyncSetup(Delegate* delegate) = 0;
41 43
42 // Builds the platform specific AppNotifyChannelUI. 44 // Builds the platform specific AppNotifyChannelUI.
43 static AppNotifyChannelUI* Create(Profile* profile, 45 static AppNotifyChannelUI* Create(Profile* profile,
44 TabContents* tab_contents, 46 TabContents* tab_contents,
45 const std::string& app_name, 47 const std::string& app_name,
46 AppNotifyChannelUI::UIType ui_type); 48 AppNotifyChannelUI::UIType ui_type);
47 }; 49 };
48 50
51 } // namespace extensions
52
49 #endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_H_ 53 #endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698