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

Unified Diff: chrome/browser/extensions/app_notify_channel_ui_impl.h

Issue 10700202: Add Android stub implementation for AppNotifyChannelUI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a Create method to the interface Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « chrome/browser/extensions/app_notify_channel_ui_android.cc ('k') | chrome/browser/extensions/app_notify_channel_ui_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698