| 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_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 Loading... |
| 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 int embedder_routing_id, |
| 76 const base::DictionaryValue& params); |
| 76 void OnAttachToEmbedderFrame(int embedder_local_render_frame_id, | 77 void OnAttachToEmbedderFrame(int embedder_local_render_frame_id, |
| 77 int element_instance_id, | 78 int element_instance_id, |
| 78 int guest_instance_id, | 79 int guest_instance_id, |
| 79 const base::DictionaryValue& params); | 80 const base::DictionaryValue& params); |
| 80 void OnViewCreated(int view_instance_id, const std::string& view_type); | 81 void OnViewCreated(int view_instance_id, const std::string& view_type); |
| 81 void OnViewGarbageCollected(int view_instance_id); | 82 void OnViewGarbageCollected(int view_instance_id); |
| 82 | 83 |
| 83 void WillAttachCallback(GuestViewBase* guest); | 84 void WillAttachCallback(GuestViewBase* guest); |
| 84 | 85 |
| 85 DISALLOW_COPY_AND_ASSIGN(GuestViewMessageFilter); | 86 DISALLOW_COPY_AND_ASSIGN(GuestViewMessageFilter); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace guest_view | 89 } // namespace guest_view |
| 89 | 90 |
| 90 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MESSAGE_FILTER_H_ | 91 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MESSAGE_FILTER_H_ |
| OLD | NEW |