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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 } | 81 } |
82 | 82 |
83 // If the extension is in fact idle, tell the browser process to close | 83 // If the extension is in fact idle, tell the browser process to close |
84 // the background page. | 84 // the background page. |
85 void CheckIdleStatus(const std::string& extension_id); | 85 void CheckIdleStatus(const std::string& extension_id); |
86 | 86 |
87 private: | 87 private: |
88 friend class RenderViewTest; | 88 friend class RenderViewTest; |
89 | 89 |
90 // RenderProcessObserver implementation: | 90 // RenderProcessObserver implementation: |
91 virtual bool OnControlMessageReceived(const IPC::Message& message); | 91 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; |
92 virtual void WebKitInitialized(); | 92 virtual void WebKitInitialized() OVERRIDE; |
93 virtual void IdleNotification(); | 93 virtual void IdleNotification() OVERRIDE; |
94 | 94 |
95 void OnMessageInvoke(const std::string& extension_id, | 95 void OnMessageInvoke(const std::string& extension_id, |
96 const std::string& function_name, | 96 const std::string& function_name, |
97 const base::ListValue& args, | 97 const base::ListValue& args, |
98 const GURL& event_url); | 98 const GURL& event_url); |
99 void OnDeliverMessage(int target_port_id, const std::string& message); | 99 void OnDeliverMessage(int target_port_id, const std::string& message); |
100 void OnSetFunctionNames(const std::vector<std::string>& names); | 100 void OnSetFunctionNames(const std::vector<std::string>& names); |
101 void OnLoaded( | 101 void OnLoaded( |
102 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); | 102 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); |
103 void OnUnloaded(const std::string& id); | 103 void OnUnloaded(const std::string& id); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // Status of webrequest usage for known extensions. | 169 // Status of webrequest usage for known extensions. |
170 // TODO(mpcomplete): remove. http://crbug.com/100411 | 170 // TODO(mpcomplete): remove. http://crbug.com/100411 |
171 bool webrequest_adblock_; | 171 bool webrequest_adblock_; |
172 bool webrequest_adblock_plus_; | 172 bool webrequest_adblock_plus_; |
173 bool webrequest_other_; | 173 bool webrequest_other_; |
174 | 174 |
175 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); | 175 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); |
176 }; | 176 }; |
177 | 177 |
178 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 178 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
OLD | NEW |