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_BROWSER_GUEST_VIEW_GUEST_VIEW_MESSAGE_FILTER_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MESSAGE_FILTER_H_ |
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MESSAGE_FILTER_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 int guest_instance_id, | 53 int guest_instance_id, |
54 const base::DictionaryValue& attach_params); | 54 const base::DictionaryValue& attach_params); |
55 void OnCreateMimeHandlerViewGuest(int render_frame_id, | 55 void OnCreateMimeHandlerViewGuest(int render_frame_id, |
56 const std::string& view_id, | 56 const std::string& view_id, |
57 int element_instance_id, | 57 int element_instance_id, |
58 const gfx::Size& element_size); | 58 const gfx::Size& element_size); |
59 void OnResizeGuest(int render_frame_id, | 59 void OnResizeGuest(int render_frame_id, |
60 int element_instance_id, | 60 int element_instance_id, |
61 const gfx::Size& new_size); | 61 const gfx::Size& new_size); |
62 | 62 |
| 63 void OnCanExecuteContentScript(int render_view_id, |
| 64 int script_id, |
| 65 bool* allowed); |
| 66 |
63 // Runs on UI thread. | 67 // Runs on UI thread. |
64 void MimeHandlerViewGuestCreatedCallback(int element_instance_id, | 68 void MimeHandlerViewGuestCreatedCallback(int element_instance_id, |
65 int embedder_render_process_id, | 69 int embedder_render_process_id, |
66 int embedder_render_frame_id, | 70 int embedder_render_frame_id, |
67 const gfx::Size& element_size, | 71 const gfx::Size& element_size, |
68 content::WebContents* web_contents); | 72 content::WebContents* web_contents); |
69 | 73 |
70 const int render_process_id_; | 74 const int render_process_id_; |
71 | 75 |
72 // Should only be accessed on the UI thread. | 76 // Should only be accessed on the UI thread. |
73 content::BrowserContext* const browser_context_; | 77 content::BrowserContext* const browser_context_; |
74 | 78 |
75 // Weak pointers produced by this factory are bound to the IO thread. | 79 // Weak pointers produced by this factory are bound to the IO thread. |
76 base::WeakPtrFactory<GuestViewMessageFilter> weak_ptr_factory_; | 80 base::WeakPtrFactory<GuestViewMessageFilter> weak_ptr_factory_; |
77 | 81 |
78 DISALLOW_COPY_AND_ASSIGN(GuestViewMessageFilter); | 82 DISALLOW_COPY_AND_ASSIGN(GuestViewMessageFilter); |
79 }; | 83 }; |
80 | 84 |
81 } // namespace extensions | 85 } // namespace extensions |
82 | 86 |
83 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MESSAGE_FILTER_H_ | 87 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MESSAGE_FILTER_H_ |
OLD | NEW |