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

Unified Diff: chrome/browser/extensions/api/notification/notification_api.h

Issue 12313115: Take notification API out of experimental. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflict. 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/notification/notification_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/notification/notification_api.h
diff --git a/chrome/browser/extensions/api/notification/notification_api.h b/chrome/browser/extensions/api/notification/notification_api.h
deleted file mode 100644
index a68575829ba609e9a88d7ce0e09254e5f3afcd29..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/notification/notification_api.h
+++ /dev/null
@@ -1,92 +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_API_NOTIFICATION_NOTIFICATION_API_H_
-#define CHROME_BROWSER_EXTENSIONS_API_NOTIFICATION_NOTIFICATION_API_H_
-
-#include <string>
-
-#include "base/memory/ref_counted.h"
-#include "chrome/browser/extensions/api/api_function.h"
-#include "chrome/browser/extensions/extension_function.h"
-#include "chrome/common/extensions/api/experimental_notification.h"
-#include "ui/message_center/notification_types.h"
-
-namespace extensions {
-
-class NotificationApiFunction : public ApiFunction {
- protected:
- NotificationApiFunction();
- virtual ~NotificationApiFunction();
-
- void CreateNotification(
- const std::string& id,
- api::experimental_notification::NotificationOptions* options);
-
- bool IsNotificationApiEnabled();
-
- // Called inside of RunImpl.
- virtual bool RunNotificationApi() = 0;
-
- // UITHreadExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
-
- message_center::NotificationType MapApiTemplateTypeToType(
- api::experimental_notification::TemplateType type);
-};
-
-class NotificationCreateFunction : public NotificationApiFunction {
- public:
- NotificationCreateFunction();
-
- // UIThreadExtensionFunction:
- virtual bool RunNotificationApi() OVERRIDE;
-
- protected:
- virtual ~NotificationCreateFunction();
-
- private:
- scoped_ptr<api::experimental_notification::Create::Params> params_;
-
- DECLARE_EXTENSION_FUNCTION("experimental.notification.create",
- EXPERIMENTAL_NOTIFICATION_CREATE)
-};
-
-class NotificationUpdateFunction : public NotificationApiFunction {
- public:
- NotificationUpdateFunction();
-
- // UIThreadExtensionFunction:
- virtual bool RunNotificationApi() OVERRIDE;
-
- protected:
- virtual ~NotificationUpdateFunction();
-
- private:
- scoped_ptr<api::experimental_notification::Update::Params> params_;
-
- DECLARE_EXTENSION_FUNCTION("experimental.notification.update",
- EXPERIMENTAL_NOTIFICATION_UPDATE)
-};
-
-class NotificationClearFunction : public NotificationApiFunction {
- public:
- NotificationClearFunction();
-
- // UIThreadExtensionFunction:
- virtual bool RunNotificationApi() OVERRIDE;
-
- protected:
- virtual ~NotificationClearFunction();
-
- private:
- scoped_ptr<api::experimental_notification::Clear::Params> params_;
-
- DECLARE_EXTENSION_FUNCTION("experimental.notification.clear",
- EXPERIMENTAL_NOTIFICATION_CLEAR)
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_NOTIFICATION_NOTIFICATION_API_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/notification/notification_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698