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"
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
17 class ClientInitiatedFrameConnection
: public FrameUserData
{
19 explicit ClientInitiatedFrameConnection(mojom::FrameClientPtr frame_client
);
20 ~ClientInitiatedFrameConnection() override
;
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_