OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // IE toolband implementation. | 5 // IE toolband implementation. |
6 #ifndef CEEE_IE_PLUGIN_TOOLBAND_TOOL_BAND_H_ | 6 #ifndef CEEE_IE_PLUGIN_TOOLBAND_TOOL_BAND_H_ |
7 #define CEEE_IE_PLUGIN_TOOLBAND_TOOL_BAND_H_ | 7 #define CEEE_IE_PLUGIN_TOOLBAND_TOOL_BAND_H_ |
8 | 8 |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlapp.h> // Must be included AFTER base. | 10 #include <atlapp.h> // Must be included AFTER base. |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 247 |
248 // True if we noticed that no extensions are enabled and requested | 248 // True if we noticed that no extensions are enabled and requested |
249 // to install one. | 249 // to install one. |
250 bool already_tried_installing_; | 250 bool already_tried_installing_; |
251 | 251 |
252 // Flag purpose: see comments to ShouldForceOwnLine | 252 // Flag purpose: see comments to ShouldForceOwnLine |
253 // for efficiency we read only once (thus the second flag). | 253 // for efficiency we read only once (thus the second flag). |
254 bool own_line_flag_; | 254 bool own_line_flag_; |
255 bool already_checked_own_line_flag_; | 255 bool already_checked_own_line_flag_; |
256 | 256 |
| 257 // True if we have sent the tool band ID to the BHO. |
| 258 bool already_sent_id_to_bho_; |
| 259 |
257 // Listening to DIID_DWebBrowserEvents2 is optional. For registration | 260 // Listening to DIID_DWebBrowserEvents2 is optional. For registration |
258 // purposes we have to know if we are listening, though. | 261 // purposes we have to know if we are listening, though. |
259 bool listening_to_browser_events_; | 262 bool listening_to_browser_events_; |
260 | 263 |
261 // Filesystem path to the .crx we will install, or the empty string, or | 264 // Filesystem path to the .crx we will install, or the empty string, or |
262 // (if not ending in .crx) the path to an exploded extension directory to | 265 // (if not ending in .crx) the path to an exploded extension directory to |
263 // load. | 266 // load. |
264 std::wstring extension_path_; | 267 std::wstring extension_path_; |
265 | 268 |
266 // Function info objects describing our message handlers. | 269 // Function info objects describing our message handlers. |
267 // Effectively const but can't make const because of silly ATL macro problem. | 270 // Effectively const but can't make const because of silly ATL macro problem. |
268 static _ATL_FUNC_INFO handler_type_idispatch_; | 271 static _ATL_FUNC_INFO handler_type_idispatch_; |
269 static _ATL_FUNC_INFO handler_type_long_; | 272 static _ATL_FUNC_INFO handler_type_long_; |
270 static _ATL_FUNC_INFO handler_type_idispatch_bstr_; | 273 static _ATL_FUNC_INFO handler_type_idispatch_bstr_; |
271 static _ATL_FUNC_INFO handler_type_bstr_i4_; | 274 static _ATL_FUNC_INFO handler_type_bstr_i4_; |
272 static _ATL_FUNC_INFO handler_type_bstrarray_; | 275 static _ATL_FUNC_INFO handler_type_bstrarray_; |
273 static _ATL_FUNC_INFO handler_type_idispatch_variantref_; | 276 static _ATL_FUNC_INFO handler_type_idispatch_variantref_; |
274 | 277 |
275 DISALLOW_COPY_AND_ASSIGN(ToolBand); | 278 DISALLOW_COPY_AND_ASSIGN(ToolBand); |
276 }; | 279 }; |
277 | 280 |
278 #endif // CEEE_IE_PLUGIN_TOOLBAND_TOOL_BAND_H_ | 281 #endif // CEEE_IE_PLUGIN_TOOLBAND_TOOL_BAND_H_ |
OLD | NEW |