forked from electron/electron
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchild_web_contents_tracker.h
More file actions
37 lines (26 loc) · 1.02 KB
/
Copy pathchild_web_contents_tracker.h
File metadata and controls
37 lines (26 loc) · 1.02 KB
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
28
29
30
31
32
33
34
35
36
37
// 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 SHELL_BROWSER_CHILD_WEB_CONTENTS_TRACKER_H_
#define SHELL_BROWSER_CHILD_WEB_CONTENTS_TRACKER_H_
#include <string>
#include "content/public/browser/web_contents_user_data.h"
namespace electron {
// ChildWebContentsTracker tracks child WebContents
// created by native `window.open()`
struct ChildWebContentsTracker
: public content::WebContentsUserData<ChildWebContentsTracker> {
~ChildWebContentsTracker() override;
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();
DISALLOW_COPY_AND_ASSIGN(ChildWebContentsTracker);
};
} // namespace electron
#endif // SHELL_BROWSER_CHILD_WEB_CONTENTS_TRACKER_H_