Roll src/third_party/WebKit 605a979:06cb9e9 (svn 202556:202558)
[chromium-blink-merge.git] / components / web_view / client_initiated_frame_connection.h
blob44de4b335ecdd9d54fe5c433a399fb8d45aaa21c
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_tree.mojom.h"
12 namespace web_view {
14 // FrameUserData for use when a Frame is created by way of
15 // OnCreatedFrame(). In this case the FrameTreeClient is supplied from
16 // Frame that called OnCreatedFrame().
17 class ClientInitiatedFrameConnection : public FrameUserData {
18 public:
19 explicit ClientInitiatedFrameConnection(FrameTreeClientPtr frame_tree_client);
20 ~ClientInitiatedFrameConnection() override;
22 private:
23 FrameTreeClientPtr frame_tree_client_;
25 DISALLOW_COPY_AND_ASSIGN(ClientInitiatedFrameConnection);
28 } // namespace web_view
30 #endif // COMPONENTS_WEB_VIEW_CLIENT_INITIATED_FRAME_CONNECTION_H_