Roll src/third_party/WebKit eac3800:0237a66 (svn 202606:202607)
[chromium-blink-merge.git] / components / web_view / client_initiated_frame_connection.h
blob6ad198072284c48090874ea94fe53727b281eb61
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_WEB_VIEW_CLIENT_INITIATED_FRAME_CONNECTION_H_
6 #define COMPONENTS_WEB_VIEW_CLIENT_INITIATED_FRAME_CONNECTION_H_
8 #include "base/basictypes.h"
9 #include "components/web_view/frame_user_data.h"
10 #include "components/web_view/public/interfaces/frame.mojom.h"
12 namespace web_view {
14 // FrameUserData for use when a Frame is created by way of OnCreatedFrame(). In
15 // this case the FrameClient is supplied from Frame that called
16 // OnCreatedFrame().
17 class ClientInitiatedFrameConnection : public FrameUserData {
18 public:
19 explicit ClientInitiatedFrameConnection(mojom::FrameClientPtr frame_client);
20 ~ClientInitiatedFrameConnection() override;
22 private:
23 mojom::FrameClientPtr frame_client_;
25 DISALLOW_COPY_AND_ASSIGN(ClientInitiatedFrameConnection);
28 } // namespace web_view
30 #endif // COMPONENTS_WEB_VIEW_CLIENT_INITIATED_FRAME_CONNECTION_H_