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

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

Issue 12680004: Remove chrome/ code to handle App Notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts. Created 7 years, 9 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.h
diff --git a/chrome/browser/extensions/app_notify_channel_ui.h b/chrome/browser/extensions/app_notify_channel_ui.h
deleted file mode 100644
index 9ca1a05135c2cfc6a6c54bff9bc25719648d33cf..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/app_notify_channel_ui.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// 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_
-
-#include <string>
-
-class Profile;
-
-namespace content {
-class WebContents;
-}
-
-namespace extensions {
-
-// 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;
-
- // Builds the platform specific AppNotifyChannelUI.
- static AppNotifyChannelUI* Create(Profile* profile,
- content::WebContents* web_contents,
- const std::string& app_name,
- AppNotifyChannelUI::UIType ui_type);
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_H_

Powered by Google App Engine
This is Rietveld 408576698