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

Side by Side Diff: components/guest_view/browser/guest_view_message_filter.h

Issue 2417693002: Allow MimeHandlerViewGuest be embedded inside OOPIFs (Closed)
Patch Set: Setting embedder frame id when the MimeHandlerViewGuest is created. Created 4 years, 2 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_BROWSER_GUEST_VIEW_MESSAGE_FILTER_H_ 5 #ifndef COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MESSAGE_FILTER_H_
6 #define COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MESSAGE_FILTER_H_ 6 #define COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MESSAGE_FILTER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Weak pointers produced by this factory are bound to the IO thread. 65 // Weak pointers produced by this factory are bound to the IO thread.
66 base::WeakPtrFactory<GuestViewMessageFilter> weak_ptr_factory_; 66 base::WeakPtrFactory<GuestViewMessageFilter> weak_ptr_factory_;
67 67
68 private: 68 private:
69 friend class content::BrowserThread; 69 friend class content::BrowserThread;
70 friend class base::DeleteHelper<GuestViewMessageFilter>; 70 friend class base::DeleteHelper<GuestViewMessageFilter>;
71 71
72 // Message handlers on the UI thread. 72 // Message handlers on the UI thread.
73 void OnAttachGuest(int element_instance_id, 73 void OnAttachGuest(int element_instance_id,
74 int guest_instance_id, 74 int guest_instance_id,
75 const base::DictionaryValue& attach_params); 75 const base::DictionaryValue& params);
76 void OnAttachToEmbedderFrame(int embedder_local_render_frame_id, 76 void OnAttachToEmbedderFrame(int embedder_local_render_frame_id,
77 int element_instance_id, 77 int element_instance_id,
78 int guest_instance_id, 78 int guest_instance_id,
79 const base::DictionaryValue& params); 79 const base::DictionaryValue& params);
80 void OnViewCreated(int view_instance_id, const std::string& view_type); 80 void OnViewCreated(int view_instance_id, const std::string& view_type);
81 void OnViewGarbageCollected(int view_instance_id); 81 void OnViewGarbageCollected(int view_instance_id);
82 82
83 void WillAttachCallback(GuestViewBase* guest); 83 void WillAttachCallback(GuestViewBase* guest);
84 84
85 DISALLOW_COPY_AND_ASSIGN(GuestViewMessageFilter); 85 DISALLOW_COPY_AND_ASSIGN(GuestViewMessageFilter);
86 }; 86 };
87 87
88 } // namespace guest_view 88 } // namespace guest_view
89 89
90 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MESSAGE_FILTER_H_ 90 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698