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

Unified Diff: components/html_viewer/replicated_frame_state.cc

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/html_viewer/replicated_frame_state.h ('k') | components/html_viewer/run_all_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/replicated_frame_state.cc
diff --git a/components/html_viewer/replicated_frame_state.cc b/components/html_viewer/replicated_frame_state.cc
deleted file mode 100644
index e5bdff3bcfb8d37297a976b7e64ca69a5251d3ad..0000000000000000000000000000000000000000
--- a/components/html_viewer/replicated_frame_state.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2015 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.
-
-#include "components/html_viewer/replicated_frame_state.h"
-
-#include "components/html_viewer/html_frame_properties.h"
-
-namespace html_viewer {
-
-ReplicatedFrameState::ReplicatedFrameState()
- : sandbox_flags(blink::WebSandboxFlags::None),
- tree_scope(blink::WebTreeScopeType::Document) {}
-
-ReplicatedFrameState::~ReplicatedFrameState() {}
-
-void SetReplicatedFrameStateFromClientProperties(
- const mojo::Map<mojo::String, mojo::Array<uint8_t>>& properties,
- ReplicatedFrameState* state) {
- state->name = FrameNameFromClientProperty(
- GetValueFromClientProperties(kPropertyFrameName, properties));
- state->origin = FrameOriginFromClientProperty(
- GetValueFromClientProperties(kPropertyFrameOrigin, properties));
- if (!FrameSandboxFlagsFromClientProperty(
- GetValueFromClientProperties(kPropertyFrameSandboxFlags, properties),
- &(state->sandbox_flags))) {
- state->sandbox_flags = blink::WebSandboxFlags::None;
- }
- if (!FrameTreeScopeFromClientProperty(
- GetValueFromClientProperties(kPropertyFrameTreeScope, properties),
- &(state->tree_scope))) {
- state->tree_scope = blink::WebTreeScopeType::Document;
- }
-}
-
-void ClientPropertiesFromReplicatedFrameState(
- const ReplicatedFrameState& state,
- mojo::Map<mojo::String, mojo::Array<uint8_t>>* properties) {
- AddToClientPropertiesIfValid(
- kPropertyFrameName, FrameNameToClientProperty(state.name), properties);
- AddToClientPropertiesIfValid(kPropertyFrameTreeScope,
- FrameTreeScopeToClientProperty(state.tree_scope),
- properties);
- AddToClientPropertiesIfValid(
- kPropertyFrameSandboxFlags,
- FrameSandboxFlagsToClientProperty(state.sandbox_flags), properties);
-}
-
-} // namespace html_viewer
« no previous file with comments | « components/html_viewer/replicated_frame_state.h ('k') | components/html_viewer/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698