<commit_before>// Copyright 2014 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 WebPushClient_h
#define WebPushClient_h

#include "public/platform/WebCallbacks.h"
#include "public/platform/WebPushError.h"
#include "public/platform/WebPushPermissionStatus.h"

namespace blink {

class WebServiceWorkerProvider;
struct WebPushRegistration;

typedef WebCallbacks<WebPushRegistration, WebPushError> WebPushRegistrationCallbacks;
// FIXME: Delete WebPushPermissionCallback once the embedder stops depending on it.
typedef WebCallbacks<WebPushPermissionStatus, void> WebPushPermissionCallback;
typedef WebCallbacks<WebPushPermissionStatus, void> WebPushPermissionStatusCallback;

class WebPushClient {
public:
    virtual ~WebPushClient() { }

    // Ownership of the WebPushRegistrationCallbacks is transferred to the
    // client. Ownership of the WebServiceWorkerProvider is not transferred.
    virtual void registerPushMessaging(WebPushRegistrationCallbacks*, WebServiceWorkerProvider*) { }

    // Ownership of the WebPushPermissionStatusCallback is transferred to the
    // client. Ownership of the WebServiceWorkerProvider is not transferred.
    virtual void getPermissionStatus(WebPushPermissionStatusCallback*, WebServiceWorkerProvider*) { }
};

} // namespace blink

#endif // WebPushClient_h<commit_msg>Delete the unused WebPushPermissionCallback [3/3]<commit_after>// Copyright 2014 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 WebPushClient_h
#define WebPushClient_h

#include "public/platform/WebCallbacks.h"
#include "public/platform/WebPushError.h"
#include "public/platform/WebPushPermissionStatus.h"

namespace blink {

class WebServiceWorkerProvider;
struct WebPushRegistration;

typedef WebCallbacks<WebPushRegistration, WebPushError> WebPushRegistrationCallbacks;
typedef WebCallbacks<WebPushPermissionStatus, void> WebPushPermissionStatusCallback;

class WebPushClient {
public:
    virtual ~WebPushClient() { }

    // Ownership of the WebPushRegistrationCallbacks is transferred to the
    // client. Ownership of the WebServiceWorkerProvider is not transferred.
    virtual void registerPushMessaging(WebPushRegistrationCallbacks*, WebServiceWorkerProvider*) { }

    // Ownership of the WebPushPermissionStatusCallback is transferred to the
    // client. Ownership of the WebServiceWorkerProvider is not transferred.
    virtual void getPermissionStatus(WebPushPermissionStatusCallback*, WebServiceWorkerProvider*) { }
};

} // namespace blink

#endif // WebPushClient_h
{'fraction_non_alphanumeric': 0.06666666666666667, 'fraction_numerical': 0.003683241252302026, 'mean_word_length': 5.689655172413793, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4128586', 'n_tokens_mistral': 699, 'n_tokens_neox': 673, 'n_words': 219}