Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Side by Side Diff: components/guest_view/renderer/iframe_guest_view_request.h

Issue 1560553002: Framelet Prototype 2016 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Applied Brett's Windows + Fixed security issue Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_GUEST_VIEW_RENDERER_IFRAME_GUEST_VIEW_REQUEST_H_ 5 #ifndef COMPONENTS_GUEST_VIEW_RENDERER_IFRAME_GUEST_VIEW_REQUEST_H_
6 #define COMPONENTS_GUEST_VIEW_RENDERER_IFRAME_GUEST_VIEW_REQUEST_H_ 6 #define COMPONENTS_GUEST_VIEW_RENDERER_IFRAME_GUEST_VIEW_REQUEST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/guest_view/renderer/guest_view_request.h" 9 #include "components/guest_view/renderer/guest_view_request.h"
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
11 #include "v8/include/v8.h" 11 #include "v8/include/v8.h"
12 12
13 namespace guest_view { 13 namespace guest_view {
14 class GuestViewContainer; 14 class GuestViewContainer;
15 15
16 // This class represents an AttachGuest request in --site-per-process from 16 // This class represents an AttachGuest request in --site-per-process from
17 // Javascript. It includes 17 // Javascript. It includes
18 // the input parameters and the callback function. 18 // the input parameters and the callback function.
19 class GuestViewAttachIframeRequest : public guest_view::GuestViewRequest { 19 class GuestViewAttachIframeRequest : public GuestViewJavaScriptRequest {
20 public: 20 public:
21 GuestViewAttachIframeRequest(GuestViewContainer* container, 21 GuestViewAttachIframeRequest(GuestViewContainer* container,
22 int render_frame_routing_id, 22 int render_frame_routing_id,
23 int guest_instance_id, 23 int guest_instance_id,
24 scoped_ptr<base::DictionaryValue> params, 24 scoped_ptr<base::DictionaryValue> params,
25 v8::Local<v8::Function> callback, 25 v8::Local<v8::Function> callback,
26 v8::Isolate* isolate); 26 v8::Isolate* isolate);
27 ~GuestViewAttachIframeRequest() override; 27 ~GuestViewAttachIframeRequest() override;
28 28
29 void PerformRequest() override; 29 void PerformRequest() override;
30 void HandleResponse(const IPC::Message& message) override; 30 void HandleResponse(const IPC::Message& message) override;
31 31
32 private: 32 private:
33 const int render_frame_routing_id_; 33 const int render_frame_routing_id_;
34 const int guest_instance_id_; 34 const int guest_instance_id_;
35 scoped_ptr<base::DictionaryValue> params_; 35 scoped_ptr<base::DictionaryValue> params_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(GuestViewAttachIframeRequest); 37 DISALLOW_COPY_AND_ASSIGN(GuestViewAttachIframeRequest);
38 }; 38 };
39 39
40 } // namespace guest_view 40 } // namespace guest_view
41 41
42 #endif // COMPONENTS_GUEST_VIEW_RENDERER_IFRAME_GUEST_VIEW_REQUEST_H_ 42 #endif // COMPONENTS_GUEST_VIEW_RENDERER_IFRAME_GUEST_VIEW_REQUEST_H_
OLDNEW
« no previous file with comments | « components/guest_view/renderer/guest_view_request.cc ('k') | components/guest_view/renderer/iframe_guest_view_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698