Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: chrome_frame/chrome_active_document.h

Issue 3061036: Handle automation server crashes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/automation/automation_constants.h ('k') | chrome_frame/chrome_active_document.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_FRAME_CHROME_ACTIVE_DOCUMENT_H_ 5 #ifndef CHROME_FRAME_CHROME_ACTIVE_DOCUMENT_H_
6 #define CHROME_FRAME_CHROME_ACTIVE_DOCUMENT_H_ 6 #define CHROME_FRAME_CHROME_ACTIVE_DOCUMENT_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 #include <atlctl.h> 10 #include <atlctl.h>
11 #include <htiframe.h> 11 #include <htiframe.h>
12 #include <map>
13 #include <mshtmcid.h> 12 #include <mshtmcid.h>
14 #include <perhist.h> 13 #include <perhist.h>
14
15 #include <map>
15 #include <string> 16 #include <string>
16 17
17 #include "base/scoped_ptr.h" 18 #include "base/scoped_ptr.h"
18 #include "base/scoped_comptr_win.h" 19 #include "base/scoped_comptr_win.h"
19 #include "base/thread.h" 20 #include "base/thread.h"
20 21
21 #include "chrome_frame/chrome_frame_activex_base.h" 22 #include "chrome_frame/chrome_frame_activex_base.h"
22 #include "chrome_frame/com_type_info_holder.h" 23 #include "chrome_frame/com_type_info_holder.h"
23 #include "chrome_frame/find_dialog.h" 24 #include "chrome_frame/find_dialog.h"
24 #include "chrome_frame/html_private_window_impl.h" 25 #include "chrome_frame/html_private_window_impl.h"
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 LRESULT OnBack(WORD notify_code, WORD id, HWND control_window, 422 LRESULT OnBack(WORD notify_code, WORD id, HWND control_window,
422 BOOL& bHandled); 423 BOOL& bHandled);
423 424
424 LRESULT OnFirePrivacyChange(UINT message, WPARAM wparam, LPARAM lparam, 425 LRESULT OnFirePrivacyChange(UINT message, WPARAM wparam, LPARAM lparam,
425 BOOL& handled); 426 BOOL& handled);
426 LRESULT OnShowWindow(UINT message, WPARAM wparam, LPARAM lparam, 427 LRESULT OnShowWindow(UINT message, WPARAM wparam, LPARAM lparam,
427 BOOL& handled); 428 BOOL& handled);
428 LRESULT OnSetFocus(UINT message, WPARAM wparam, LPARAM lparam, 429 LRESULT OnSetFocus(UINT message, WPARAM wparam, LPARAM lparam,
429 BOOL& handled); 430 BOOL& handled);
430 431
431 // Checks for the presence of known-to-be-buggy BHOs. If we find any
432 // we do not fire the DocumentComplete event to avoid a crash.
433 static bool ShouldFireDocumentComplete();
434
435 // Sets the dimensions on the IE window. These dimensions are parsed out from 432 // Sets the dimensions on the IE window. These dimensions are parsed out from
436 // the information passed in from Chrome during window.open. 433 // the information passed in from Chrome during window.open.
437 void SetWindowDimensions(); 434 void SetWindowDimensions();
438 435
439 protected: 436 protected:
440 typedef std::map<int, OLECMDF> CommandStatusMap; 437 typedef std::map<int, OLECMDF> CommandStatusMap;
441 438
442 IPC::NavigationInfo navigation_info_; 439 IPC::NavigationInfo navigation_info_;
443 bool is_doc_object_; 440 bool is_doc_object_;
444 441
(...skipping 28 matching lines...) Expand all
473 UrlmonUrlRequestManager::PrivacyInfo::PrivacyRecords::iterator 470 UrlmonUrlRequestManager::PrivacyInfo::PrivacyRecords::iterator
474 next_privacy_record_; 471 next_privacy_record_;
475 472
476 // Dimensions of the window. Used only when opening popups. 473 // Dimensions of the window. Used only when opening popups.
477 gfx::Rect dimensions_; 474 gfx::Rect dimensions_;
478 public: 475 public:
479 OLEINPLACEFRAMEINFO frame_info_; 476 OLEINPLACEFRAMEINFO frame_info_;
480 }; 477 };
481 478
482 #endif // CHROME_FRAME_CHROME_ACTIVE_DOCUMENT_H_ 479 #endif // CHROME_FRAME_CHROME_ACTIVE_DOCUMENT_H_
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_constants.h ('k') | chrome_frame/chrome_active_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698