| OLD | NEW |
| 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 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "chrome/browser/sync/profile_sync_service_observer.h" | 12 #include "chrome/browser/sync/profile_sync_service_observer.h" |
| 13 | 13 |
| 14 class Profile; | 14 class Profile; |
| 15 class TabContentsWrapper; | 15 class TabContents; |
| 16 typedef TabContents TabContentsWrapper; |
| 16 | 17 |
| 17 // An interface for prompting a user to sign in to sync so that we can create | 18 // An interface for prompting a user to sign in to sync so that we can create |
| 18 // an app notification channel for one of their apps. | 19 // an app notification channel for one of their apps. |
| 19 class AppNotifyChannelUI { | 20 class AppNotifyChannelUI { |
| 20 public: | 21 public: |
| 21 virtual ~AppNotifyChannelUI() {} | 22 virtual ~AppNotifyChannelUI() {} |
| 22 | 23 |
| 23 // Used to customize the UI we show. | 24 // Used to customize the UI we show. |
| 24 enum UIType { | 25 enum UIType { |
| 25 // Do not prompt the user with an infobar. | 26 // Do not prompt the user with an infobar. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // after ShowLoginDialog is called and before the wizard is | 85 // after ShowLoginDialog is called and before the wizard is |
| 85 // actually visible to the user. So we record if the wizard was | 86 // actually visible to the user. So we record if the wizard was |
| 86 // shown to user and then wait for wizard to get dismissed. | 87 // shown to user and then wait for wizard to get dismissed. |
| 87 // See crbug.com/101842. | 88 // See crbug.com/101842. |
| 88 bool wizard_shown_to_user_; | 89 bool wizard_shown_to_user_; |
| 89 | 90 |
| 90 DISALLOW_COPY_AND_ASSIGN(AppNotifyChannelUIImpl); | 91 DISALLOW_COPY_AND_ASSIGN(AppNotifyChannelUIImpl); |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 #endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_H_ | 94 #endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_H_ |
| OLD | NEW |