// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_BROWSER_CONTEXT_MENU_PARAMS_H_ #define CONTENT_PUBLIC_BROWSER_CONTEXT_MENU_PARAMS_H_ #include "content/common/content_export.h" #include "third_party/blink/public/common/context_menu_data/untrustworthy_context_menu_params.h" #include "url/gurl.h" #include "url/origin.h" namespace content { // FIXME(beng): This would be more useful in the future and more efficient // if the parameters here weren't so literally mapped to what // they contain for the ContextMenu task. It might be better // to make the string fields more generic so that this object // could be used for more contextual actions. // // SECURITY NOTE: This struct should be populated by the browser process, // after validating the IPC payload from blink::UntrustworthyContextMenuParams. // Note that the fields declared in ContextMenuParams can be populated based on // the trustworthy, browser-side data (i.e. don't need to be sent over IPC and // therefore don't need to be covered by blink::UntrustworthyContextMenuParams). struct CONTENT_EXPORT ContextMenuParams : public blink::UntrustworthyContextMenuParams { … }; } // namespace content #endif // CONTENT_PUBLIC_BROWSER_CONTEXT_MENU_PARAMS_H_