OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ |
6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // RenderViewObserver implementation. | 68 // RenderViewObserver implementation. |
69 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 69 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
70 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame) OVERRIDE; | 70 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame) OVERRIDE; |
71 virtual void DidFinishLoad(WebKit::WebFrame* frame) OVERRIDE; | 71 virtual void DidFinishLoad(WebKit::WebFrame* frame) OVERRIDE; |
72 virtual void DidCreateDocumentElement(WebKit::WebFrame* frame) OVERRIDE; | 72 virtual void DidCreateDocumentElement(WebKit::WebFrame* frame) OVERRIDE; |
73 virtual void DidStartProvisionalLoad(WebKit::WebFrame* frame) OVERRIDE; | 73 virtual void DidStartProvisionalLoad(WebKit::WebFrame* frame) OVERRIDE; |
74 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE; | 74 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE; |
75 virtual void DidCreateDataSource(WebKit::WebFrame* frame, | 75 virtual void DidCreateDataSource(WebKit::WebFrame* frame, |
76 WebKit::WebDataSource* ds) OVERRIDE; | 76 WebKit::WebDataSource* ds) OVERRIDE; |
77 | 77 |
78 void OnExtensionResponse(int request_id, bool success, | |
79 const base::ListValue& response, | |
80 const std::string& error); | |
81 void OnExtensionMessageInvoke(const std::string& extension_id, | 78 void OnExtensionMessageInvoke(const std::string& extension_id, |
82 const std::string& function_name, | 79 const std::string& function_name, |
83 const base::ListValue& args, | 80 const base::ListValue& args, |
84 const GURL& event_url, | 81 const GURL& event_url, |
85 bool user_gesture); | 82 bool user_gesture); |
86 void OnExtensionDispatchOnConnect(int target_port_id, | 83 void OnExtensionDispatchOnConnect(int target_port_id, |
87 const std::string& channel_name, | 84 const std::string& channel_name, |
88 const std::string& tab_json, | 85 const std::string& tab_json, |
89 const std::string& source_extension_id, | 86 const std::string& source_extension_id, |
90 const std::string& target_extension_id); | 87 const std::string& target_extension_id); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // Id of the tab which the RenderView is attached to. | 135 // Id of the tab which the RenderView is attached to. |
139 int tab_id_; | 136 int tab_id_; |
140 | 137 |
141 // Id number of browser window which RenderView is attached to. | 138 // Id number of browser window which RenderView is attached to. |
142 int browser_window_id_; | 139 int browser_window_id_; |
143 | 140 |
144 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); | 141 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); |
145 }; | 142 }; |
146 | 143 |
147 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ | 144 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ |
OLD | NEW |