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_DISPATCHER_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 // RenderProcessObserver implementation: | 63 // RenderProcessObserver implementation: |
64 virtual bool OnControlMessageReceived(const IPC::Message& message); | 64 virtual bool OnControlMessageReceived(const IPC::Message& message); |
65 virtual void WebKitInitialized(); | 65 virtual void WebKitInitialized(); |
66 virtual void IdleNotification(); | 66 virtual void IdleNotification(); |
67 | 67 |
68 void OnMessageInvoke(const std::string& extension_id, | 68 void OnMessageInvoke(const std::string& extension_id, |
69 const std::string& function_name, | 69 const std::string& function_name, |
70 const base::ListValue& args, | 70 const base::ListValue& args, |
71 const GURL& event_url); | 71 const GURL& event_url); |
| 72 void OnDeliverMessage(int target_port_id, const std::string& message); |
72 void OnSetFunctionNames(const std::vector<std::string>& names); | 73 void OnSetFunctionNames(const std::vector<std::string>& names); |
73 void OnLoaded(const ExtensionMsg_Loaded_Params& params); | 74 void OnLoaded(const ExtensionMsg_Loaded_Params& params); |
74 void OnUnloaded(const std::string& id); | 75 void OnUnloaded(const std::string& id); |
75 void OnSetScriptingWhitelist( | 76 void OnSetScriptingWhitelist( |
76 const Extension::ScriptingWhitelist& extension_ids); | 77 const Extension::ScriptingWhitelist& extension_ids); |
77 void OnPageActionsUpdated(const std::string& extension_id, | 78 void OnPageActionsUpdated(const std::string& extension_id, |
78 const std::vector<std::string>& page_actions); | 79 const std::vector<std::string>& page_actions); |
79 void OnActivateApplication(const std::string& extension_id); | 80 void OnActivateApplication(const std::string& extension_id); |
80 void OnActivateExtension(const std::string& extension_id); | 81 void OnActivateExtension(const std::string& extension_id); |
81 void OnUpdatePermissions(int reason_id, | 82 void OnUpdatePermissions(int reason_id, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // The applications that are active in this process. | 125 // The applications that are active in this process. |
125 std::set<std::string> active_application_ids_; | 126 std::set<std::string> active_application_ids_; |
126 | 127 |
127 // True once WebKit has been initialized (and it is therefore safe to poke). | 128 // True once WebKit has been initialized (and it is therefore safe to poke). |
128 bool is_webkit_initialized_; | 129 bool is_webkit_initialized_; |
129 | 130 |
130 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); | 131 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); |
131 }; | 132 }; |
132 | 133 |
133 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 134 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
OLD | NEW |