2013-10-18 18:33:56 +02:00
|
|
|
// 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.
|
|
|
|
|
2015-11-26 03:53:12 +01:00
|
|
|
#ifndef CEF_LIBCEF_BROWSER_NET_URL_REQUEST_USER_DATA_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_NET_URL_REQUEST_USER_DATA_H_
|
2013-10-18 18:33:56 +02:00
|
|
|
|
|
|
|
#include "include/cef_base.h"
|
|
|
|
#include "include/cef_urlrequest.h"
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "base/supports_user_data.h"
|
|
|
|
|
2013-10-18 18:33:56 +02:00
|
|
|
// Used to annotate all URLRequests for which the request can be associated
|
|
|
|
// with the CefURLRequestClient.
|
|
|
|
class CefURLRequestUserData : public base::SupportsUserData::Data {
|
|
|
|
public:
|
|
|
|
CefURLRequestUserData(CefRefPtr<CefURLRequestClient> client);
|
2014-11-12 20:25:15 +01:00
|
|
|
~CefURLRequestUserData() override;
|
2013-10-18 18:33:56 +02:00
|
|
|
|
|
|
|
CefRefPtr<CefURLRequestClient> GetClient();
|
|
|
|
static const void* kUserDataKey;
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
private:
|
2013-10-18 18:33:56 +02:00
|
|
|
CefRefPtr<CefURLRequestClient> client_;
|
|
|
|
};
|
|
|
|
|
2015-11-26 03:53:12 +01:00
|
|
|
#endif // CEF_LIBCEF_BROWSER_NET_URL_REQUEST_USER_DATA_H_
|