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

Unified Diff: components/html_viewer/html_frame_properties.h

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/html_frame_delegate.h ('k') | components/html_viewer/html_frame_properties.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/html_frame_properties.h
diff --git a/components/html_viewer/html_frame_properties.h b/components/html_viewer/html_frame_properties.h
deleted file mode 100644
index e9463c7f90cc565c0c02b71df21dfdc0d0593c6c..0000000000000000000000000000000000000000
--- a/components/html_viewer/html_frame_properties.h
+++ /dev/null
@@ -1,65 +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.
-
-#ifndef COMPONENTS_HTML_VIEWER_HTML_FRAME_PROPERTIES_H_
-#define COMPONENTS_HTML_VIEWER_HTML_FRAME_PROPERTIES_H_
-
-#include <stdint.h>
-
-#include "mojo/public/cpp/bindings/array.h"
-#include "mojo/public/cpp/bindings/map.h"
-#include "mojo/public/cpp/bindings/string.h"
-
-namespace blink {
-class WebFrame;
-enum class WebSandboxFlags : int;
-class WebString;
-enum class WebTreeScopeType;
-}
-
-namespace url {
-class Origin;
-}
-
-// Functions used to communicate html specific state for each frame.
-namespace html_viewer {
-
-// Keys used for client properties.
-extern const char kPropertyFrameName[];
-extern const char kPropertyFrameOrigin[];
-extern const char kPropertyFrameSandboxFlags[];
-extern const char kPropertyFrameTreeScope[];
-
-mojo::Array<uint8_t> FrameNameToClientProperty(const blink::WebString& name);
-blink::WebString FrameNameFromClientProperty(
- const mojo::Array<uint8_t>& new_data);
-
-mojo::Array<uint8_t> FrameTreeScopeToClientProperty(
- blink::WebTreeScopeType scope_type);
-bool FrameTreeScopeFromClientProperty(const mojo::Array<uint8_t>& new_data,
- blink::WebTreeScopeType* scope);
-
-mojo::Array<uint8_t> FrameSandboxFlagsToClientProperty(
- blink::WebSandboxFlags flags);
-bool FrameSandboxFlagsFromClientProperty(const mojo::Array<uint8_t>& new_data,
- blink::WebSandboxFlags* flags);
-
-url::Origin FrameOrigin(blink::WebFrame* frame);
-mojo::Array<uint8_t> FrameOriginToClientProperty(blink::WebFrame* frame);
-url::Origin FrameOriginFromClientProperty(const mojo::Array<uint8_t>& data);
-
-// Convenience to add |value| to |client_properties| if non-null.
-void AddToClientPropertiesIfValid(
- const std::string& name,
- mojo::Array<uint8_t> value,
- mojo::Map<mojo::String, mojo::Array<uint8_t>>* client_properties);
-
-// Returns |properties[name]| if exists, otherwise a null array.
-mojo::Array<uint8_t> GetValueFromClientProperties(
- const std::string& name,
- const mojo::Map<mojo::String, mojo::Array<uint8_t>>& properties);
-
-} // namespace html_viewer
-
-#endif // COMPONENTS_HTML_VIEWER_HTML_FRAME_PROPERTIES_H_
« no previous file with comments | « components/html_viewer/html_frame_delegate.h ('k') | components/html_viewer/html_frame_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698