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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 void ScheduleAtDocumentEnd(const base::Closure& callback); | 83 void ScheduleAtDocumentEnd(const base::Closure& callback); |
84 | 84 |
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(blink::WebDataSource* data_source) override; |
94 void DidCreateScriptContext(v8::Local<v8::Context>, | 94 void DidCreateScriptContext(v8::Local<v8::Context>, |
95 int world_id) override; | 95 int world_id) override; |
96 void WillReleaseScriptContext(v8::Local<v8::Context>, int world_id) override; | 96 void WillReleaseScriptContext(v8::Local<v8::Context>, int world_id) override; |
97 bool OnMessageReceived(const IPC::Message& message) override; | 97 bool OnMessageReceived(const IPC::Message& message) override; |
98 void OnDestruct() override; | 98 void OnDestruct() override; |
99 | 99 |
100 // IPC handlers. | 100 // IPC handlers. |
101 void OnExtensionValidateMessagePort(const PortId& id); | 101 void OnExtensionValidateMessagePort(const PortId& id); |
102 void OnExtensionDispatchOnConnect( | 102 void OnExtensionDispatchOnConnect( |
103 const PortId& target_port_id, | 103 const PortId& target_port_id, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 bool delayed_main_world_script_initialization_ = false; | 144 bool delayed_main_world_script_initialization_ = false; |
145 | 145 |
146 base::WeakPtrFactory<ExtensionFrameHelper> weak_ptr_factory_; | 146 base::WeakPtrFactory<ExtensionFrameHelper> weak_ptr_factory_; |
147 | 147 |
148 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); | 148 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); |
149 }; | 149 }; |
150 | 150 |
151 } // namespace extensions | 151 } // namespace extensions |
152 | 152 |
153 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ | 153 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ |
OLD | NEW |