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); | |
73 void OnSetFunctionNames(const std::vector<std::string>& names); | 72 void OnSetFunctionNames(const std::vector<std::string>& names); |
74 void OnLoaded(const ExtensionMsg_Loaded_Params& params); | 73 void OnLoaded(const ExtensionMsg_Loaded_Params& params); |
75 void OnUnloaded(const std::string& id); | 74 void OnUnloaded(const std::string& id); |
76 void OnSetScriptingWhitelist( | 75 void OnSetScriptingWhitelist( |
77 const Extension::ScriptingWhitelist& extension_ids); | 76 const Extension::ScriptingWhitelist& extension_ids); |
78 void OnPageActionsUpdated(const std::string& extension_id, | 77 void OnPageActionsUpdated(const std::string& extension_id, |
79 const std::vector<std::string>& page_actions); | 78 const std::vector<std::string>& page_actions); |
80 void OnActivateApplication(const std::string& extension_id); | 79 void OnActivateApplication(const std::string& extension_id); |
81 void OnActivateExtension(const std::string& extension_id); | 80 void OnActivateExtension(const std::string& extension_id); |
82 void OnUpdatePermissions(int reason_id, | 81 void OnUpdatePermissions(int reason_id, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // The applications that are active in this process. | 124 // The applications that are active in this process. |
126 std::set<std::string> active_application_ids_; | 125 std::set<std::string> active_application_ids_; |
127 | 126 |
128 // True once WebKit has been initialized (and it is therefore safe to poke). | 127 // True once WebKit has been initialized (and it is therefore safe to poke). |
129 bool is_webkit_initialized_; | 128 bool is_webkit_initialized_; |
130 | 129 |
131 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); | 130 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); |
132 }; | 131 }; |
133 | 132 |
134 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 133 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
OLD | NEW |