| 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 "content/public/common/console_message_level.h" | 10 #include "content/public/common/console_message_level.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 // RenderFrameObserver implementation. | 64 // RenderFrameObserver implementation. |
| 65 void DidCreateScriptContext(v8::Local<v8::Context>, | 65 void DidCreateScriptContext(v8::Local<v8::Context>, |
| 66 int extension_group, | 66 int extension_group, |
| 67 int world_id) override; | 67 int world_id) override; |
| 68 void WillReleaseScriptContext(v8::Local<v8::Context>, int world_id) override; | 68 void WillReleaseScriptContext(v8::Local<v8::Context>, int world_id) override; |
| 69 bool OnMessageReceived(const IPC::Message& message) override; | 69 bool OnMessageReceived(const IPC::Message& message) override; |
| 70 | 70 |
| 71 // IPC handlers. | 71 // IPC handlers. |
| 72 void OnAddMessageToConsole(content::ConsoleMessageLevel level, | |
| 73 const std::string& message); | |
| 74 void OnExtensionDispatchOnConnect( | 72 void OnExtensionDispatchOnConnect( |
| 75 int target_port_id, | 73 int target_port_id, |
| 76 const std::string& channel_name, | 74 const std::string& channel_name, |
| 77 const ExtensionMsg_TabConnectionInfo& source, | 75 const ExtensionMsg_TabConnectionInfo& source, |
| 78 const ExtensionMsg_ExternalConnectionInfo& info, | 76 const ExtensionMsg_ExternalConnectionInfo& info, |
| 79 const std::string& tls_channel_id); | 77 const std::string& tls_channel_id); |
| 80 void OnExtensionDeliverMessage(int target_port_id, | 78 void OnExtensionDeliverMessage(int target_port_id, |
| 81 const Message& message); | 79 const Message& message); |
| 82 void OnExtensionDispatchOnDisconnect(int port_id, | 80 void OnExtensionDispatchOnDisconnect(int port_id, |
| 83 const std::string& error_message); | 81 const std::string& error_message); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 105 std::string tab_extension_owner_id_; | 103 std::string tab_extension_owner_id_; |
| 106 | 104 |
| 107 Dispatcher* extension_dispatcher_; | 105 Dispatcher* extension_dispatcher_; |
| 108 | 106 |
| 109 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); | 107 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); |
| 110 }; | 108 }; |
| 111 | 109 |
| 112 } // namespace extensions | 110 } // namespace extensions |
| 113 | 111 |
| 114 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ | 112 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ |
| OLD | NEW |