OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_EXTENSION_FRAME_HELPER_H_ | 5 #ifndef EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ |
6 #define EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ | 6 #define EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 const blink::WebVector<blink::WebString>& newly_matching_selectors, | 88 const blink::WebVector<blink::WebString>& newly_matching_selectors, |
89 const blink::WebVector<blink::WebString>& stopped_matching_selectors) | 89 const blink::WebVector<blink::WebString>& stopped_matching_selectors) |
90 override; | 90 override; |
91 void DidCreateScriptContext(v8::Local<v8::Context>, | 91 void DidCreateScriptContext(v8::Local<v8::Context>, |
92 int extension_group, | 92 int extension_group, |
93 int world_id) override; | 93 int world_id) override; |
94 void WillReleaseScriptContext(v8::Local<v8::Context>, int world_id) override; | 94 void WillReleaseScriptContext(v8::Local<v8::Context>, int world_id) override; |
95 bool OnMessageReceived(const IPC::Message& message) override; | 95 bool OnMessageReceived(const IPC::Message& message) override; |
96 | 96 |
97 // IPC handlers. | 97 // IPC handlers. |
| 98 void OnExtensionCheckHasMessagePort(int port_id); |
98 void OnExtensionDispatchOnConnect( | 99 void OnExtensionDispatchOnConnect( |
99 int target_port_id, | 100 int target_port_id, |
100 const std::string& channel_name, | 101 const std::string& channel_name, |
101 const ExtensionMsg_TabConnectionInfo& source, | 102 const ExtensionMsg_TabConnectionInfo& source, |
102 const ExtensionMsg_ExternalConnectionInfo& info, | 103 const ExtensionMsg_ExternalConnectionInfo& info, |
103 const std::string& tls_channel_id); | 104 const std::string& tls_channel_id); |
104 void OnExtensionDeliverMessage(int target_port_id, | 105 void OnExtensionDeliverMessage(int target_port_id, |
| 106 int source_tab_id, |
105 const Message& message); | 107 const Message& message); |
106 void OnExtensionDispatchOnDisconnect(int port_id, | 108 void OnExtensionDispatchOnDisconnect(int port_id, |
107 const std::string& error_message); | 109 const std::string& error_message); |
108 void OnExtensionSetTabId(int tab_id); | 110 void OnExtensionSetTabId(int tab_id); |
109 void OnUpdateBrowserWindowId(int browser_window_id); | 111 void OnUpdateBrowserWindowId(int browser_window_id); |
110 void OnNotifyRendererViewType(ViewType view_type); | 112 void OnNotifyRendererViewType(ViewType view_type); |
111 void OnExtensionResponse(int request_id, | 113 void OnExtensionResponse(int request_id, |
112 bool success, | 114 bool success, |
113 const base::ListValue& response, | 115 const base::ListValue& response, |
114 const std::string& error); | 116 const std::string& error); |
(...skipping 24 matching lines...) Expand all Loading... |
139 std::vector<base::Closure> document_load_finished_callbacks_; | 141 std::vector<base::Closure> document_load_finished_callbacks_; |
140 | 142 |
141 base::WeakPtrFactory<ExtensionFrameHelper> weak_ptr_factory_; | 143 base::WeakPtrFactory<ExtensionFrameHelper> weak_ptr_factory_; |
142 | 144 |
143 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); | 145 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); |
144 }; | 146 }; |
145 | 147 |
146 } // namespace extensions | 148 } // namespace extensions |
147 | 149 |
148 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ | 150 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ |
OLD | NEW |