| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 virtual void DidCreateDataSource(WebKit::WebFrame* frame, | 59 virtual void DidCreateDataSource(WebKit::WebFrame* frame, |
| 60 WebKit::WebDataSource* ds); | 60 WebKit::WebDataSource* ds); |
| 61 | 61 |
| 62 void OnExtensionResponse(int request_id, bool success, | 62 void OnExtensionResponse(int request_id, bool success, |
| 63 const std::string& response, | 63 const std::string& response, |
| 64 const std::string& error); | 64 const std::string& error); |
| 65 void OnExtensionMessageInvoke(const std::string& extension_id, | 65 void OnExtensionMessageInvoke(const std::string& extension_id, |
| 66 const std::string& function_name, | 66 const std::string& function_name, |
| 67 const base::ListValue& args, | 67 const base::ListValue& args, |
| 68 const GURL& event_url); | 68 const GURL& event_url); |
| 69 void OnExtensionDeliverMessage(int target_port_id, |
| 70 const std::string& message); |
| 69 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params); | 71 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params); |
| 70 void OnGetApplicationInfo(int page_id); | 72 void OnGetApplicationInfo(int page_id); |
| 71 void OnNotifyRendererViewType(ViewType::Type view_type); | 73 void OnNotifyRendererViewType(ViewType::Type view_type); |
| 72 void OnUpdateBrowserWindowId(int window_id); | 74 void OnUpdateBrowserWindowId(int window_id); |
| 73 void OnInlineWebstoreInstallResponse( | 75 void OnInlineWebstoreInstallResponse( |
| 74 int install_id, bool success, const std::string& error); | 76 int install_id, bool success, const std::string& error); |
| 75 | 77 |
| 76 // Callback triggered when we finish downloading the application definition | 78 // Callback triggered when we finish downloading the application definition |
| 77 // file. | 79 // file. |
| 78 void DidDownloadApplicationDefinition(const WebKit::WebURLResponse& response, | 80 void DidDownloadApplicationDefinition(const WebKit::WebURLResponse& response, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 106 // Type of view attached with RenderView. | 108 // Type of view attached with RenderView. |
| 107 ViewType::Type view_type_; | 109 ViewType::Type view_type_; |
| 108 | 110 |
| 109 // Id number of browser window which RenderView is attached to. | 111 // Id number of browser window which RenderView is attached to. |
| 110 int browser_window_id_; | 112 int browser_window_id_; |
| 111 | 113 |
| 112 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); | 114 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ | 117 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ |
| OLD | NEW |