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

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

Issue 1161483004: Move guest view container message routing out of content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newwindow Created 5 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_GUEST_VIEW_CONTAINER_H_ 5 #ifndef COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_H_
6 #define COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_H_ 6 #define COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_H_
7 7
8 #include "base/memory/linked_ptr.h" 8 #include "base/memory/linked_ptr.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/renderer/browser_plugin_delegate.h" 10 #include "content/public/renderer/browser_plugin_delegate.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 void RenderFrameDestroyed(); 46 void RenderFrameDestroyed();
47 47
48 void EnqueueRequest(linked_ptr<GuestViewRequest> request); 48 void EnqueueRequest(linked_ptr<GuestViewRequest> request);
49 void PerformPendingRequest(); 49 void PerformPendingRequest();
50 void HandlePendingResponseCallback(const IPC::Message& message); 50 void HandlePendingResponseCallback(const IPC::Message& message);
51 51
52 void OnHandleCallback(const IPC::Message& message); 52 void OnHandleCallback(const IPC::Message& message);
53 53
54 // BrowserPluginDelegate implementation. 54 // BrowserPluginDelegate implementation.
55 bool OnMessageReceived(const IPC::Message& message) final;
56 void Ready() final; 55 void Ready() final;
57 void SetElementInstanceID(int element_instance_id) final; 56 void SetElementInstanceID(int element_instance_id) final;
58 57
59 int element_instance_id_; 58 int element_instance_id_;
60 content::RenderFrame* render_frame_; 59 content::RenderFrame* render_frame_;
61 scoped_ptr<RenderFrameLifetimeObserver> render_frame_lifetime_observer_; 60 scoped_ptr<RenderFrameLifetimeObserver> render_frame_lifetime_observer_;
62 61
63 bool ready_; 62 bool ready_;
64 63
65 std::deque<linked_ptr<GuestViewRequest> > pending_requests_; 64 std::deque<linked_ptr<GuestViewRequest> > pending_requests_;
66 linked_ptr<GuestViewRequest> pending_response_; 65 linked_ptr<GuestViewRequest> pending_response_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(GuestViewContainer); 67 DISALLOW_COPY_AND_ASSIGN(GuestViewContainer);
69 }; 68 };
70 69
71 } // namespace guest_view 70 } // namespace guest_view
72 71
73 #endif // COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_H_ 72 #endif // COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698