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

Side by Side Diff: chrome_frame/utils.h

Issue 5698005: Add support for gcf:about:plugins in chrome frame full tab mode. The URL vali... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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/test/util_unittests.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) 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_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 <windows.h> 9 #include <windows.h>
10 #include <wininet.h> 10 #include <wininet.h>
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 bool attach_to_external_tab_; 557 bool attach_to_external_tab_;
558 bool is_chrome_protocol_; 558 bool is_chrome_protocol_;
559 uint64 cookie_; 559 uint64 cookie_;
560 gfx::Rect dimensions_; 560 gfx::Rect dimensions_;
561 int disposition_; 561 int disposition_;
562 562
563 GURL parsed_url_; 563 GURL parsed_url_;
564 std::string profile_name_; 564 std::string profile_name_;
565 }; 565 };
566 566
567 class NavigationConstraints;
567 // Returns true if we can navigate to this URL. 568 // Returns true if we can navigate to this URL.
568 // This function checks if the url scheme is valid for navigation within 569 // These decisions are controlled by the NavigationConstraints object passed
569 // chrome and whether it is a restricted URL as per IE settings. In either of 570 // in.
570 // these cases it returns false. 571 bool CanNavigate(const GURL& url,
571 bool CanNavigate(const GURL& url, IInternetSecurityManager* security_manager, 572 NavigationConstraints* navigation_constraints);
572 bool is_privileged);
573 573
574 // Utility function that prevents the current module from ever being unloaded. 574 // Utility function that prevents the current module from ever being unloaded.
575 // Call if you make irreversible patches. 575 // Call if you make irreversible patches.
576 void PinModule(); 576 void PinModule();
577 577
578 // Helper function to spin a message loop and dispatch messages while waiting 578 // Helper function to spin a message loop and dispatch messages while waiting
579 // for a handle to be signaled. 579 // for a handle to be signaled.
580 void WaitWithMessageLoop(HANDLE* handles, int count, DWORD timeout); 580 void WaitWithMessageLoop(HANDLE* handles, int count, DWORD timeout);
581 581
582 // Enumerates values in a key and adds them to an array. 582 // Enumerates values in a key and adds them to an array.
(...skipping 22 matching lines...) Expand all
605 // 605 //
606 // For example: 606 // For example:
607 // X-UA-Compatible: IE=8; Chrome=IE6 607 // X-UA-Compatible: IE=8; Chrome=IE6
608 // 608 //
609 // The string is first interpreted using ';' as a delimiter. It is reevaluated 609 // The string is first interpreted using ';' as a delimiter. It is reevaluated
610 // using ',' iff no valid 'chrome=' value is found. 610 // using ',' iff no valid 'chrome=' value is found.
611 bool CheckXUaCompatibleDirective(const std::string& directive, 611 bool CheckXUaCompatibleDirective(const std::string& directive,
612 int ie_major_version); 612 int ie_major_version);
613 613
614 #endif // CHROME_FRAME_UTILS_H_ 614 #endif // CHROME_FRAME_UTILS_H_
OLDNEW
« no previous file with comments | « chrome_frame/test/util_unittests.cc ('k') | chrome_frame/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698