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

Side by Side Diff: chrome_frame/utils.h

Issue 12521002: Start and stop crash reporting outside of the loader lock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert r70898 Created 7 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UTILS_H_ 5 #ifndef CHROME_FRAME_UTILS_H_
6 #define CHROME_FRAME_UTILS_H_ 6 #define CHROME_FRAME_UTILS_H_
7 7
8 #include <OAidl.h> 8 #include <OAidl.h>
9 #include <objidl.h> 9 #include <objidl.h>
10 #include <windows.h> 10 #include <windows.h>
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 std::string profile_name_; 541 std::string profile_name_;
542 }; 542 };
543 543
544 class NavigationConstraints; 544 class NavigationConstraints;
545 // Returns true if we can navigate to this URL. 545 // Returns true if we can navigate to this URL.
546 // These decisions are controlled by the NavigationConstraints object passed 546 // These decisions are controlled by the NavigationConstraints object passed
547 // in. 547 // in.
548 bool CanNavigate(const GURL& url, 548 bool CanNavigate(const GURL& url,
549 NavigationConstraints* navigation_constraints); 549 NavigationConstraints* navigation_constraints);
550 550
551 typedef void (*PinModuleCallbackFn)(void);
robertshield 2013/03/13 17:22:27 i-feel-bad-for-asking-nit: it would be nice if thi
grt (UTC plus 2) 2013/03/14 14:40:32 Done.
552
553 // Sets a callback function to be invoked when the module is pinned.
554 void SetPinModuleCallback(PinModuleCallbackFn callback);
555
551 // Utility function that prevents the current module from ever being unloaded. 556 // Utility function that prevents the current module from ever being unloaded.
552 // Call if you make irreversible patches. 557 // Call if you make irreversible patches.
553 void PinModule(); 558 void PinModule();
554 559
555 // Helper function to spin a message loop and dispatch messages while waiting 560 // Helper function to spin a message loop and dispatch messages while waiting
556 // for a handle to be signaled. 561 // for a handle to be signaled.
557 void WaitWithMessageLoop(HANDLE* handles, int count, DWORD timeout); 562 void WaitWithMessageLoop(HANDLE* handles, int count, DWORD timeout);
558 563
559 // Enumerates values in a key and adds them to an array. 564 // Enumerates values in a key and adds them to an array.
560 // The names of the values are not returned. 565 // The names of the values are not returned.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 // increase the connection count once per process. 605 // increase the connection count once per process.
601 // Returns true on success. 606 // Returns true on success.
602 bool IncreaseWinInetConnections(DWORD connections); 607 bool IncreaseWinInetConnections(DWORD connections);
603 608
604 // Sets |profile_path| to the path for the Chrome Frame |profile_name| 609 // Sets |profile_path| to the path for the Chrome Frame |profile_name|
605 // profile. 610 // profile.
606 void GetChromeFrameProfilePath(const string16& profile_name, 611 void GetChromeFrameProfilePath(const string16& profile_name,
607 base::FilePath* profile_path); 612 base::FilePath* profile_path);
608 613
609 #endif // CHROME_FRAME_UTILS_H_ 614 #endif // CHROME_FRAME_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698