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 EXTENSIONS_RENDERER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_REQUEST_H_ | 5 #ifndef EXTENSIONS_RENDERER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_REQUEST_H_ |
6 #define EXTENSIONS_RENDERER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_REQUEST_H_ | 6 #define EXTENSIONS_RENDERER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_REQUEST_H_ |
7 | 7 |
8 #include "ipc/ipc_message.h" | 8 #include "ipc/ipc_message.h" |
9 #include "v8/include/v8.h" | 9 #include "v8/include/v8.h" |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 v8::Isolate* isolate); | 85 v8::Isolate* isolate); |
86 ~GuestViewDetachRequest() override; | 86 ~GuestViewDetachRequest() override; |
87 | 87 |
88 void PerformRequest() override; | 88 void PerformRequest() override; |
89 void HandleResponse(const IPC::Message& message) override; | 89 void HandleResponse(const IPC::Message& message) override; |
90 | 90 |
91 private: | 91 private: |
92 DISALLOW_COPY_AND_ASSIGN(GuestViewDetachRequest); | 92 DISALLOW_COPY_AND_ASSIGN(GuestViewDetachRequest); |
93 }; | 93 }; |
94 | 94 |
| 95 class GuestViewAttachIframeRequest : public GuestViewRequest { |
| 96 public: |
| 97 GuestViewAttachIframeRequest(GuestViewContainer* container, |
| 98 int render_frame_routing_id, |
| 99 int guest_instance_id, |
| 100 scoped_ptr<base::DictionaryValue> params, |
| 101 v8::Local<v8::Function> callback, |
| 102 v8::Isolate* isolate); |
| 103 ~GuestViewAttachIframeRequest() override; |
| 104 |
| 105 void PerformRequest() override; |
| 106 void HandleResponse(const IPC::Message& message) override; |
| 107 |
| 108 private: |
| 109 const int render_frame_routing_id_; |
| 110 const int guest_instance_id_; |
| 111 scoped_ptr<base::DictionaryValue> params_; |
| 112 |
| 113 DISALLOW_COPY_AND_ASSIGN(GuestViewAttachIframeRequest); |
| 114 }; |
| 115 |
95 } // namespace extensions | 116 } // namespace extensions |
96 | 117 |
97 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_CONTAINER_H_ | 118 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_EXTENSIONS_GUEST_VIEW_CONTAINER_H_ |
OLD | NEW |