| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 private: | 85 private: |
| 86 // RenderFrameObserver implementation. | 86 // RenderFrameObserver implementation. |
| 87 void DidCreateDocumentElement() override; | 87 void DidCreateDocumentElement() override; |
| 88 void DidCreateNewDocument() override; | 88 void DidCreateNewDocument() override; |
| 89 void DidMatchCSS( | 89 void DidMatchCSS( |
| 90 const blink::WebVector<blink::WebString>& newly_matching_selectors, | 90 const blink::WebVector<blink::WebString>& newly_matching_selectors, |
| 91 const blink::WebVector<blink::WebString>& stopped_matching_selectors) | 91 const blink::WebVector<blink::WebString>& stopped_matching_selectors) |
| 92 override; | 92 override; |
| 93 void DidStartProvisionalLoad() override; | 93 void DidStartProvisionalLoad() override; |
| 94 void DidCreateScriptContext(v8::Local<v8::Context>, | 94 void DidCreateScriptContext(v8::Local<v8::Context>, |
| 95 int extension_group, | |
| 96 int world_id) override; | 95 int world_id) override; |
| 97 void WillReleaseScriptContext(v8::Local<v8::Context>, int world_id) override; | 96 void WillReleaseScriptContext(v8::Local<v8::Context>, int world_id) override; |
| 98 bool OnMessageReceived(const IPC::Message& message) override; | 97 bool OnMessageReceived(const IPC::Message& message) override; |
| 99 void OnDestruct() override; | 98 void OnDestruct() override; |
| 100 | 99 |
| 101 // IPC handlers. | 100 // IPC handlers. |
| 102 void OnExtensionValidateMessagePort(const PortId& id); | 101 void OnExtensionValidateMessagePort(const PortId& id); |
| 103 void OnExtensionDispatchOnConnect( | 102 void OnExtensionDispatchOnConnect( |
| 104 const PortId& target_port_id, | 103 const PortId& target_port_id, |
| 105 const std::string& channel_name, | 104 const std::string& channel_name, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 bool delayed_main_world_script_initialization_ = false; | 144 bool delayed_main_world_script_initialization_ = false; |
| 146 | 145 |
| 147 base::WeakPtrFactory<ExtensionFrameHelper> weak_ptr_factory_; | 146 base::WeakPtrFactory<ExtensionFrameHelper> weak_ptr_factory_; |
| 148 | 147 |
| 149 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); | 148 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); |
| 150 }; | 149 }; |
| 151 | 150 |
| 152 } // namespace extensions | 151 } // namespace extensions |
| 153 | 152 |
| 154 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ | 153 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ |
| OLD | NEW |