summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/modules/notifications/NotificationData.h
blob: 09b3a66baca5a38d613df9318e0e7b0d30f32801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2015 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 NotificationData_h
#define NotificationData_h

#include "modules/ModulesExport.h"
#include "public/platform/modules/notifications/WebNotificationData.h"

namespace WTF {
class String;
}

namespace blink {

class ExceptionState;
class ExecutionContext;
class NotificationOptions;

// Creates a WebNotificationData object based on the developer-provided notification data. When the
// data is deemed invalid, an exception will be thrown to the passed exception state.
MODULES_EXPORT WebNotificationData createWebNotificationData(ExecutionContext*, const String& title, const NotificationOptions&, ExceptionState&);

} // namespace blink

#endif // NotificationData_h