mirror of
https://github.com/electron/electron.git
synced 2026-01-08 07:04:01 -05:00
* chore: bump chromium in DEPS to 143.0.7474.0 * 7006208: [Mac] Fix rendering bug for manual occlusion detection on macOS 26 Refs https://chromium-review.googlesource.com/c/chromium/src/+/7006208 * chore: update patches * 7038563: Forward declare more in page_navigator.h Refs https://chromium-review.googlesource.com/c/chromium/src/+/7038563 * 7023417: Remove ipc/ipc_message_macros.h Refs https://chromium-review.googlesource.com/c/chromium/src/+/7023417 * 7006340: Move icon_util files to win/ subdrectory Refs https://chromium-review.googlesource.com/c/chromium/src/+/7006340 --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
47 lines
1.3 KiB
C++
47 lines
1.3 KiB
C++
// Copyright (c) 2017 GitHub, Inc.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_CHILD_WEB_CONTENTS_TRACKER_H_
|
|
#define ELECTRON_SHELL_BROWSER_CHILD_WEB_CONTENTS_TRACKER_H_
|
|
|
|
#include <string>
|
|
|
|
#include "base/memory/scoped_refptr.h"
|
|
#include "content/public/browser/web_contents_user_data.h"
|
|
#include "content/public/common/referrer.h"
|
|
#include "url/gurl.h"
|
|
|
|
namespace network {
|
|
class ResourceRequestBody;
|
|
} // namespace network
|
|
|
|
namespace electron {
|
|
|
|
// ChildWebContentsTracker tracks child WebContents
|
|
// created by native `window.open()`
|
|
struct ChildWebContentsTracker
|
|
: public content::WebContentsUserData<ChildWebContentsTracker> {
|
|
~ChildWebContentsTracker() override;
|
|
|
|
// disable copy
|
|
ChildWebContentsTracker(const ChildWebContentsTracker&) = delete;
|
|
ChildWebContentsTracker& operator=(const ChildWebContentsTracker&) = delete;
|
|
|
|
GURL url;
|
|
std::string frame_name;
|
|
content::Referrer referrer;
|
|
std::string raw_features;
|
|
scoped_refptr<network::ResourceRequestBody> body;
|
|
|
|
private:
|
|
explicit ChildWebContentsTracker(content::WebContents* web_contents);
|
|
friend class content::WebContentsUserData<ChildWebContentsTracker>;
|
|
|
|
WEB_CONTENTS_USER_DATA_KEY_DECL();
|
|
};
|
|
|
|
} // namespace electron
|
|
|
|
#endif // ELECTRON_SHELL_BROWSER_CHILD_WEB_CONTENTS_TRACKER_H_
|