| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 void DidCreateNewDocument() override; | 86 void DidCreateNewDocument() override; |
| 87 void DidMatchCSS( | 87 void DidMatchCSS( |
| 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 void OnDestruct() override; |
| 96 | 97 |
| 97 // IPC handlers. | 98 // IPC handlers. |
| 98 void OnExtensionValidateMessagePort(int port_id); | 99 void OnExtensionValidateMessagePort(int port_id); |
| 99 void OnExtensionDispatchOnConnect( | 100 void OnExtensionDispatchOnConnect( |
| 100 int target_port_id, | 101 int target_port_id, |
| 101 const std::string& channel_name, | 102 const std::string& channel_name, |
| 102 const ExtensionMsg_TabConnectionInfo& source, | 103 const ExtensionMsg_TabConnectionInfo& source, |
| 103 const ExtensionMsg_ExternalConnectionInfo& info, | 104 const ExtensionMsg_ExternalConnectionInfo& info, |
| 104 const std::string& tls_channel_id); | 105 const std::string& tls_channel_id); |
| 105 void OnExtensionDeliverMessage(int target_port_id, | 106 void OnExtensionDeliverMessage(int target_port_id, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 std::vector<base::Closure> document_load_finished_callbacks_; | 142 std::vector<base::Closure> document_load_finished_callbacks_; |
| 142 | 143 |
| 143 base::WeakPtrFactory<ExtensionFrameHelper> weak_ptr_factory_; | 144 base::WeakPtrFactory<ExtensionFrameHelper> weak_ptr_factory_; |
| 144 | 145 |
| 145 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); | 146 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 } // namespace extensions | 149 } // namespace extensions |
| 149 | 150 |
| 150 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ | 151 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ |
| OLD | NEW |