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 |