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

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: unit test 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
« no previous file with comments | « chrome_frame/scoped_initialization_manager_unittest.cc ('k') | chrome_frame/utils.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) 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 // Utility function that prevents the current module from ever being unloaded.
552 // Call if you make irreversible patches.
553 void PinModule();
554
555 // Helper function to spin a message loop and dispatch messages while waiting 551 // Helper function to spin a message loop and dispatch messages while waiting
556 // for a handle to be signaled. 552 // for a handle to be signaled.
557 void WaitWithMessageLoop(HANDLE* handles, int count, DWORD timeout); 553 void WaitWithMessageLoop(HANDLE* handles, int count, DWORD timeout);
558 554
559 // Enumerates values in a key and adds them to an array. 555 // Enumerates values in a key and adds them to an array.
560 // The names of the values are not returned. 556 // The names of the values are not returned.
561 void EnumerateKeyValues(HKEY parent_key, const wchar_t* sub_key_name, 557 void EnumerateKeyValues(HKEY parent_key, const wchar_t* sub_key_name,
562 std::vector<std::wstring>* values); 558 std::vector<std::wstring>* values);
563 559
564 // Interprets the value of an X-UA-Compatible header (or <meta> tag equivalent) 560 // Interprets the value of an X-UA-Compatible header (or <meta> tag equivalent)
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 // increase the connection count once per process. 596 // increase the connection count once per process.
601 // Returns true on success. 597 // Returns true on success.
602 bool IncreaseWinInetConnections(DWORD connections); 598 bool IncreaseWinInetConnections(DWORD connections);
603 599
604 // Sets |profile_path| to the path for the Chrome Frame |profile_name| 600 // Sets |profile_path| to the path for the Chrome Frame |profile_name|
605 // profile. 601 // profile.
606 void GetChromeFrameProfilePath(const string16& profile_name, 602 void GetChromeFrameProfilePath(const string16& profile_name,
607 base::FilePath* profile_path); 603 base::FilePath* profile_path);
608 604
609 #endif // CHROME_FRAME_UTILS_H_ 605 #endif // CHROME_FRAME_UTILS_H_
OLDNEW
« no previous file with comments | « chrome_frame/scoped_initialization_manager_unittest.cc ('k') | chrome_frame/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698