| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_WEB_VIEW_CLIENT_INITIATED_FRAME_CONNECTION_H_ | 5 #ifndef COMPONENTS_WEB_VIEW_CLIENT_INITIATED_FRAME_CONNECTION_H_ |
| 6 #define COMPONENTS_WEB_VIEW_CLIENT_INITIATED_FRAME_CONNECTION_H_ | 6 #define COMPONENTS_WEB_VIEW_CLIENT_INITIATED_FRAME_CONNECTION_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
| 9 #include "components/web_view/frame_user_data.h" | 9 #include "components/web_view/frame_user_data.h" |
| 10 #include "components/web_view/public/interfaces/frame.mojom.h" | 10 #include "components/web_view/public/interfaces/frame.mojom.h" |
| 11 | 11 |
| 12 namespace web_view { | 12 namespace web_view { |
| 13 | 13 |
| 14 // FrameUserData for use when a Frame is created by way of OnCreatedFrame(). In | 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 | 15 // this case the FrameClient is supplied from Frame that called |
| 16 // OnCreatedFrame(). | 16 // OnCreatedFrame(). |
| 17 class ClientInitiatedFrameConnection : public FrameUserData { | 17 class ClientInitiatedFrameConnection : public FrameUserData { |
| 18 public: | 18 public: |
| 19 explicit ClientInitiatedFrameConnection(mojom::FrameClientPtr frame_client); | 19 explicit ClientInitiatedFrameConnection(mojom::FrameClientPtr frame_client); |
| 20 ~ClientInitiatedFrameConnection() override; | 20 ~ClientInitiatedFrameConnection() override; |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 mojom::FrameClientPtr frame_client_; | 23 mojom::FrameClientPtr frame_client_; |
| 24 | 24 |
| 25 DISALLOW_COPY_AND_ASSIGN(ClientInitiatedFrameConnection); | 25 DISALLOW_COPY_AND_ASSIGN(ClientInitiatedFrameConnection); |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 } // namespace web_view | 28 } // namespace web_view |
| 29 | 29 |
| 30 #endif // COMPONENTS_WEB_VIEW_CLIENT_INITIATED_FRAME_CONNECTION_H_ | 30 #endif // COMPONENTS_WEB_VIEW_CLIENT_INITIATED_FRAME_CONNECTION_H_ |
| OLD | NEW |