Commit fac88d7f authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa Committed by Commit Bot

WebPushSubscription: Include <memory> for std::unique_ptr

IWYU rather than relying on it being included implicitly by other headers.
This fixes the libstdc++ build:

In file included from ../../third_party/blink/renderer/modules/push_messaging/push_subscription_callbacks.cc:5:
In file included from ../../third_party/blink/renderer/modules/push_messaging/push_subscription_callbacks.h:9:
../../third_party/blink/public/platform/modules/push_messaging/web_push_subscription.h:19:23: error: no member named 'unique_ptr' in namespace 'std'
    WebCallbacks<std::unique_ptr<WebPushSubscription>, const WebPushError&>;
                 ~~~~~^
../../third_party/blink/public/platform/modules/push_messaging/web_push_subscription.h:19:34: error: 'WebPushSubscription' does not refer to a value
    WebCallbacks<std::unique_ptr<WebPushSubscription>, const WebPushError&>;
                                 ^
../../third_party/blink/public/platform/modules/push_messaging/web_push_subscription.h:16:8: note: declared here
struct WebPushSubscription;
       ^

Bug: 957519
Change-Id: I0394ebe989e62545f5ca0b440204c66b2292c763
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1631411
Auto-Submit: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Reviewed-by: default avatarMario Sanchez Prada <mario@igalia.com>
Reviewed-by: default avatarPeter Beverloo <peter@chromium.org>
Commit-Queue: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Commit-Queue: Peter Beverloo <peter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#663845}
parent c9eb72de
......@@ -5,12 +5,15 @@
#ifndef THIRD_PARTY_BLINK_PUBLIC_PLATFORM_MODULES_PUSH_MESSAGING_WEB_PUSH_SUBSCRIPTION_H_
#define THIRD_PARTY_BLINK_PUBLIC_PLATFORM_MODULES_PUSH_MESSAGING_WEB_PUSH_SUBSCRIPTION_H_
#include <memory>
#include "third_party/blink/public/common/push_messaging/web_push_subscription_options.h"
#include "third_party/blink/public/platform/modules/push_messaging/web_push_error.h"
#include "third_party/blink/public/platform/web_callbacks.h"
#include "third_party/blink/public/platform/web_common.h"
#include "third_party/blink/public/platform/web_url.h"
#include "third_party/blink/public/platform/web_vector.h"
namespace blink {
struct WebPushSubscription;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment