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

Side by Side Diff: chrome_frame/utils.h

Issue 7276037: Remove NPAPI support from Chrome Frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/test_utils.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 16 matching lines...) Expand all
27 // utils.h : Various utility functions and classes 27 // utils.h : Various utility functions and classes
28 28
29 extern const wchar_t kChromeContentPrefix[]; 29 extern const wchar_t kChromeContentPrefix[];
30 extern const char kGCFProtocol[]; 30 extern const char kGCFProtocol[];
31 extern const wchar_t kChromeProtocolPrefix[]; 31 extern const wchar_t kChromeProtocolPrefix[];
32 extern const wchar_t kChromeFrameHeadlessMode[]; 32 extern const wchar_t kChromeFrameHeadlessMode[];
33 extern const wchar_t kChromeFrameAccessibleMode[]; 33 extern const wchar_t kChromeFrameAccessibleMode[];
34 extern const wchar_t kChromeFrameUnpinnedMode[]; 34 extern const wchar_t kChromeFrameUnpinnedMode[];
35 extern const wchar_t kAllowUnsafeURLs[]; 35 extern const wchar_t kAllowUnsafeURLs[];
36 extern const wchar_t kEnableBuggyBhoIntercept[]; 36 extern const wchar_t kEnableBuggyBhoIntercept[];
37 extern const wchar_t kEnableFirefoxPrivilegeMode[];
38 extern const wchar_t kChromeMimeType[]; 37 extern const wchar_t kChromeMimeType[];
39 extern const wchar_t kChromeFrameAttachTabPattern[]; 38 extern const wchar_t kChromeFrameAttachTabPattern[];
40 extern const wchar_t kChromeFrameConfigKey[]; 39 extern const wchar_t kChromeFrameConfigKey[];
41 extern const wchar_t kRenderInGCFUrlList[]; 40 extern const wchar_t kRenderInGCFUrlList[];
42 extern const wchar_t kRenderInHostUrlList[]; 41 extern const wchar_t kRenderInHostUrlList[];
43 extern const wchar_t kEnableGCFRendererByDefault[]; 42 extern const wchar_t kEnableGCFRendererByDefault[];
44 extern const wchar_t kIexploreProfileName[]; 43 extern const wchar_t kIexploreProfileName[];
45 extern const wchar_t kRundllProfileName[]; 44 extern const wchar_t kRundllProfileName[];
46 45
47 // This function is very similar to the AtlRegisterTypeLib function except 46 // This function is very similar to the AtlRegisterTypeLib function except
(...skipping 19 matching lines...) Expand all
67 HRESULT UtilUnRegisterTypeLib(LPCWSTR typelib_path, bool for_current_user_only); 66 HRESULT UtilUnRegisterTypeLib(LPCWSTR typelib_path, bool for_current_user_only);
68 67
69 HRESULT UtilRegisterTypeLib(ITypeLib* typelib, 68 HRESULT UtilRegisterTypeLib(ITypeLib* typelib,
70 LPCWSTR typelib_path, 69 LPCWSTR typelib_path,
71 LPCWSTR help_dir, 70 LPCWSTR help_dir,
72 bool for_current_user_only); 71 bool for_current_user_only);
73 72
74 HRESULT UtilUnRegisterTypeLib(ITypeLib* typelib, 73 HRESULT UtilUnRegisterTypeLib(ITypeLib* typelib,
75 bool for_current_user_only); 74 bool for_current_user_only);
76 75
77 // Utility function to tell if the NPAPI plugin is registered. 76 // Clears a marker that causes legacy NPAPI registration to persist across
78 bool UtilIsNPAPIPluginRegistered(); 77 // updates. Returns false if the marker could not be removed.
79 78 bool UtilRemovePersistentNPAPIMarker();
80 // Sets or clears a marker that causes NPAPI registration to persist across
81 // updates. The marker is added if set is true and is deleted otherwise.
82 bool UtilChangePersistentNPAPIMarker(bool set);
83
84 // Returns true if the persistent NPAPI marker is set, false otherwise.
85 bool UtilIsPersistentNPAPIMarkerSet();
86 79
87 // Given an HTML fragment, this function looks for the 80 // Given an HTML fragment, this function looks for the
88 // <meta http-equiv="X-UA-Compatible"> tag and extracts the value of the 81 // <meta http-equiv="X-UA-Compatible"> tag and extracts the value of the
89 // "content" attribute 82 // "content" attribute
90 // This method will currently return a false positive if the tag appears 83 // This method will currently return a false positive if the tag appears
91 // inside a string in a <SCRIPT> block. 84 // inside a string in a <SCRIPT> block.
92 HRESULT UtilGetXUACompatContentValue(const std::wstring& html_string, 85 HRESULT UtilGetXUACompatContentValue(const std::wstring& html_string,
93 std::wstring* content_value); 86 std::wstring* content_value);
94 87
95 // Returns a string from ChromeFrame's string table by resource. Must be 88 // Returns a string from ChromeFrame's string table by resource. Must be
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 }; 142 };
150 143
151 // Retrieves the executable name of the process hosting us. If 144 // Retrieves the executable name of the process hosting us. If
152 // |include_extension| is false, then we strip the extension from the name. 145 // |include_extension| is false, then we strip the extension from the name.
153 std::wstring GetHostProcessName(bool include_extension); 146 std::wstring GetHostProcessName(bool include_extension);
154 147
155 typedef enum BrowserType { 148 typedef enum BrowserType {
156 BROWSER_INVALID = -1, 149 BROWSER_INVALID = -1,
157 BROWSER_UNKNOWN, 150 BROWSER_UNKNOWN,
158 BROWSER_IE, 151 BROWSER_IE,
159 BROWSER_FIREFOX,
160 BROWSER_OPERA,
161 }; 152 };
162 153
163 BrowserType GetBrowserType(); 154 BrowserType GetBrowserType();
164 155
165 typedef enum IEVersion { 156 typedef enum IEVersion {
166 IE_INVALID, 157 IE_INVALID,
167 NON_IE, 158 NON_IE,
168 IE_UNSUPPORTED, 159 IE_UNSUPPORTED,
169 IE_6, 160 IE_6,
170 IE_7, 161 IE_7,
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 bool IsChromeFrameDocument(IWebBrowser2* web_browser); 598 bool IsChromeFrameDocument(IWebBrowser2* web_browser);
608 599
609 // Increases the wininet connection limit for HTTP 1.0/1.1 connections to the 600 // Increases the wininet connection limit for HTTP 1.0/1.1 connections to the
610 // value passed in. This is only done if the existing connection limit is 601 // value passed in. This is only done if the existing connection limit is
611 // lesser than the connection limit passed in. This function attempts to 602 // lesser than the connection limit passed in. This function attempts to
612 // increase the connection count once per process. 603 // increase the connection count once per process.
613 // Returns true on success. 604 // Returns true on success.
614 bool IncreaseWinInetConnections(DWORD connections); 605 bool IncreaseWinInetConnections(DWORD connections);
615 606
616 #endif // CHROME_FRAME_UTILS_H_ 607 #endif // CHROME_FRAME_UTILS_H_
OLDNEW
« no previous file with comments | « chrome_frame/test_utils.cc ('k') | chrome_frame/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698