| Index: chrome/browser/extensions/app_notify_channel_ui_impl.h
|
| diff --git a/chrome/browser/extensions/app_notify_channel_ui.h b/chrome/browser/extensions/app_notify_channel_ui_impl.h
|
| similarity index 66%
|
| copy from chrome/browser/extensions/app_notify_channel_ui.h
|
| copy to chrome/browser/extensions/app_notify_channel_ui_impl.h
|
| index fa5d275b94eb96dd56290199be8256c2b31985f4..62c5306c6a312ae07050a6f55ec51687cc346c85 100644
|
| --- a/chrome/browser/extensions/app_notify_channel_ui.h
|
| +++ b/chrome/browser/extensions/app_notify_channel_ui_impl.h
|
| @@ -2,49 +2,19 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_H_
|
| -#define CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_H_
|
| +#ifndef CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_IMPL_H_
|
| +#define CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_IMPL_H_
|
|
|
| #include <string>
|
|
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| +#include "chrome/browser/extensions/app_notify_channel_ui.h"
|
| #include "chrome/browser/sync/profile_sync_service_observer.h"
|
|
|
| class Profile;
|
| class TabContents;
|
|
|
| -// An interface for prompting a user to sign in to sync so that we can create
|
| -// an app notification channel for one of their apps.
|
| -class AppNotifyChannelUI {
|
| - public:
|
| - virtual ~AppNotifyChannelUI() {}
|
| -
|
| - // Used to customize the UI we show.
|
| - enum UIType {
|
| - // Do not prompt the user with an infobar.
|
| - NO_INFOBAR,
|
| -
|
| - // Ask if the app can show notifications.
|
| - NOTIFICATION_INFOBAR,
|
| - };
|
| -
|
| - class Delegate {
|
| - public:
|
| - // A callback for whether the user successfully set up sync or not.
|
| - virtual void OnSyncSetupResult(bool enabled) = 0;
|
| -
|
| - protected:
|
| - virtual ~Delegate() {}
|
| - };
|
| -
|
| - // Shows a prompt for sync setup - |delegate| will be called back later when
|
| - // setup is complete or cancelled. This should only be called once per
|
| - // instance.
|
| - virtual void PromptSyncSetup(Delegate* delegate) = 0;
|
| -};
|
| -
|
| -
|
| class AppNotifyChannelUIImpl : public AppNotifyChannelUI,
|
| public ProfileSyncServiceObserver {
|
| public:
|
| @@ -93,4 +63,4 @@ class AppNotifyChannelUIImpl : public AppNotifyChannelUI,
|
| DISALLOW_COPY_AND_ASSIGN(AppNotifyChannelUIImpl);
|
| };
|
|
|
| -#endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_H_
|
| +#endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_IMPL_H_
|
|
|