| 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/linked_ptr.h" | 11 #include "base/memory/linked_ptr.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "content/public/common/console_message_level.h" | 13 #include "content/public/common/console_message_level.h" |
| 14 #include "content/public/renderer/render_view_observer.h" | 14 #include "content/public/renderer/render_view_observer.h" |
| 15 #include "content/public/renderer/render_view_observer_tracker.h" | 15 #include "content/public/renderer/render_view_observer_tracker.h" |
| 16 #include "extensions/common/view_type.h" | 16 #include "extensions/common/view_type.h" |
| 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" | 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" |
| 18 | 18 |
| 19 class GURL; | 19 class GURL; |
| 20 class SkBitmap; | 20 class SkBitmap; |
| 21 struct ExtensionMsg_ExecuteCode_Params; | 21 struct ExtensionMsg_ExecuteCode_Params; |
| 22 struct ExtensionMsg_ExternalConnectionInfo; |
| 22 struct WebApplicationInfo; | 23 struct WebApplicationInfo; |
| 23 | 24 |
| 24 namespace base { | 25 namespace base { |
| 26 class DictionaryValue; |
| 25 class ListValue; | 27 class ListValue; |
| 26 } | 28 } |
| 27 | 29 |
| 28 namespace webkit_glue { | 30 namespace webkit_glue { |
| 29 class ResourceFetcher; | 31 class ResourceFetcher; |
| 30 class ImageResourceFetcher; | 32 class ImageResourceFetcher; |
| 31 } | 33 } |
| 32 | 34 |
| 33 namespace extensions { | 35 namespace extensions { |
| 34 class Dispatcher; | 36 class Dispatcher; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) OVERRIDE; | 73 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) OVERRIDE; |
| 72 | 74 |
| 73 void OnExtensionResponse(int request_id, bool success, | 75 void OnExtensionResponse(int request_id, bool success, |
| 74 const base::ListValue& response, | 76 const base::ListValue& response, |
| 75 const std::string& error); | 77 const std::string& error); |
| 76 void OnExtensionMessageInvoke(const std::string& extension_id, | 78 void OnExtensionMessageInvoke(const std::string& extension_id, |
| 77 const std::string& function_name, | 79 const std::string& function_name, |
| 78 const base::ListValue& args, | 80 const base::ListValue& args, |
| 79 const GURL& event_url, | 81 const GURL& event_url, |
| 80 bool user_gesture); | 82 bool user_gesture); |
| 81 void OnExtensionDispatchOnConnect(int target_port_id, | 83 void OnExtensionDispatchOnConnect( |
| 82 const std::string& channel_name, | 84 int target_port_id, |
| 83 const std::string& tab_json, | 85 const std::string& channel_name, |
| 84 const std::string& source_extension_id, | 86 const base::DictionaryValue& source_tab, |
| 85 const std::string& target_extension_id); | 87 const ExtensionMsg_ExternalConnectionInfo& info); |
| 86 void OnExtensionDeliverMessage(int target_port_id, | 88 void OnExtensionDeliverMessage(int target_port_id, |
| 87 const std::string& message); | 89 const std::string& message); |
| 88 void OnExtensionDispatchOnDisconnect(int port_id, | 90 void OnExtensionDispatchOnDisconnect(int port_id, |
| 89 const std::string& error_message); | 91 const std::string& error_message); |
| 90 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params); | 92 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params); |
| 91 void OnGetApplicationInfo(int page_id); | 93 void OnGetApplicationInfo(int page_id); |
| 92 void OnNotifyRendererViewType(ViewType view_type); | 94 void OnNotifyRendererViewType(ViewType view_type); |
| 93 void OnSetTabId(int tab_id); | 95 void OnSetTabId(int tab_id); |
| 94 void OnUpdateBrowserWindowId(int window_id); | 96 void OnUpdateBrowserWindowId(int window_id); |
| 95 void OnAddMessageToConsole(content::ConsoleMessageLevel level, | 97 void OnAddMessageToConsole(content::ConsoleMessageLevel level, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 123 | 125 |
| 124 // Id number of browser window which RenderView is attached to. | 126 // Id number of browser window which RenderView is attached to. |
| 125 int browser_window_id_; | 127 int browser_window_id_; |
| 126 | 128 |
| 127 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); | 129 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); |
| 128 }; | 130 }; |
| 129 | 131 |
| 130 } // namespace extensions | 132 } // namespace extensions |
| 131 | 133 |
| 132 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ | 134 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ |
| OLD | NEW |