Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Side by Side Diff: content/common/frame_owner_properties.cc

Issue 2697713003: Initial Implementation of Iframe Attribute for Feature Policy (Part 2) (Closed)
Patch Set: Update rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/frame_owner_properties.h ('k') | content/renderer/frame_owner_properties.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/frame_owner_properties.h" 5 #include "content/common/frame_owner_properties.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 FrameOwnerProperties::FrameOwnerProperties() 9 FrameOwnerProperties::FrameOwnerProperties()
10 : scrolling_mode(blink::WebFrameOwnerProperties::ScrollingMode::Auto), 10 : scrolling_mode(blink::WebFrameOwnerProperties::ScrollingMode::Auto),
11 margin_width(-1), 11 margin_width(-1),
12 margin_height(-1), 12 margin_height(-1),
13 allow_fullscreen(false), 13 allow_fullscreen(false),
14 allow_payment_request(false) {} 14 allow_payment_request(false) {}
15 15
16 FrameOwnerProperties::FrameOwnerProperties(const FrameOwnerProperties& other) = 16 FrameOwnerProperties::FrameOwnerProperties(const FrameOwnerProperties& other) =
17 default; 17 default;
18 18
19 FrameOwnerProperties::~FrameOwnerProperties() {} 19 FrameOwnerProperties::~FrameOwnerProperties() {}
20 20
21 bool FrameOwnerProperties::operator==(const FrameOwnerProperties& other) const { 21 bool FrameOwnerProperties::operator==(const FrameOwnerProperties& other) const {
22 return name == other.name && 22 return name == other.name && scrolling_mode == other.scrolling_mode &&
23 scrolling_mode == other.scrolling_mode &&
24 margin_width == other.margin_width && 23 margin_width == other.margin_width &&
25 margin_height == other.margin_height && 24 margin_height == other.margin_height &&
26 allow_fullscreen == other.allow_fullscreen && 25 allow_fullscreen == other.allow_fullscreen &&
27 allow_payment_request == other.allow_payment_request && 26 allow_payment_request == other.allow_payment_request &&
28 required_csp == other.required_csp && 27 required_csp == other.required_csp &&
29 std::equal(delegated_permissions.begin(), delegated_permissions.end(), 28 std::equal(delegated_permissions.begin(), delegated_permissions.end(),
30 other.delegated_permissions.begin()); 29 other.delegated_permissions.begin()) &&
30 std::equal(allowed_features.begin(), allowed_features.end(),
31 other.allowed_features.begin());
31 } 32 }
32 33
33 } // namespace content 34 } // namespace content
OLDNEW
« no previous file with comments | « content/common/frame_owner_properties.h ('k') | content/renderer/frame_owner_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698