OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <shdeprecated.h> | 8 #include <shdeprecated.h> |
9 #include <urlmon.h> | 9 #include <urlmon.h> |
10 #include <wininet.h> | 10 #include <wininet.h> |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "gfx/rect.h" | 21 #include "gfx/rect.h" |
22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
23 | 23 |
24 // utils.h : Various utility functions and classes | 24 // utils.h : Various utility functions and classes |
25 | 25 |
26 extern const wchar_t kChromeContentPrefix[]; | 26 extern const wchar_t kChromeContentPrefix[]; |
27 extern const wchar_t kChromeProtocolPrefix[]; | 27 extern const wchar_t kChromeProtocolPrefix[]; |
28 extern const wchar_t kChromeFrameHeadlessMode[]; | 28 extern const wchar_t kChromeFrameHeadlessMode[]; |
29 extern const wchar_t kChromeFrameUnpinnedMode[]; | 29 extern const wchar_t kChromeFrameUnpinnedMode[]; |
30 extern const wchar_t kEnableGCFProtocol[]; | 30 extern const wchar_t kEnableGCFProtocol[]; |
| 31 extern const wchar_t kEnableBuggyBhoIntercept[]; |
31 extern const wchar_t kChromeMimeType[]; | 32 extern const wchar_t kChromeMimeType[]; |
32 | 33 |
33 typedef enum ProtocolPatchMethod { | 34 typedef enum ProtocolPatchMethod { |
34 PATCH_METHOD_IBROWSER = 0, | 35 PATCH_METHOD_IBROWSER = 0, |
35 PATCH_METHOD_INET_PROTOCOL, // 1 | 36 PATCH_METHOD_INET_PROTOCOL, // 1 |
36 PATCH_METHOD_MONIKER, // 2 | 37 PATCH_METHOD_MONIKER, // 2 |
37 }; | 38 }; |
38 | 39 |
39 // A REG_DWORD config value that maps to the ProtocolPatchMethod enum. | 40 // A REG_DWORD config value that maps to the ProtocolPatchMethod enum. |
40 // To get the config value, call: | 41 // To get the config value, call: |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 // Parses the attach external tab url, which comes in from Chrome in the course | 475 // Parses the attach external tab url, which comes in from Chrome in the course |
475 // of a window.open operation. The format of this URL is as below:- | 476 // of a window.open operation. The format of this URL is as below:- |
476 // gcf:attach_external_tab&n1&n2&x&y&width&height | 477 // gcf:attach_external_tab&n1&n2&x&y&width&height |
477 // n1 -> cookie, n2 -> disposition, x, y, width, height -> dimensions of the | 478 // n1 -> cookie, n2 -> disposition, x, y, width, height -> dimensions of the |
478 // window. | 479 // window. |
479 // Returns true on success. | 480 // Returns true on success. |
480 bool ParseAttachExternalTabUrl(const std::wstring& url, uint64* cookie, | 481 bool ParseAttachExternalTabUrl(const std::wstring& url, uint64* cookie, |
481 gfx::Rect* dimensions, int* disposition); | 482 gfx::Rect* dimensions, int* disposition); |
482 | 483 |
483 #endif // CHROME_FRAME_UTILS_H_ | 484 #endif // CHROME_FRAME_UTILS_H_ |
OLD | NEW |