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

Side by Side Diff: chrome_frame/utils.h

Issue 1589013: Switch renderer in Moniker patch... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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) 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 13 matching lines...) Expand all
24 extern const wchar_t kChromeContentPrefix[]; 24 extern const wchar_t kChromeContentPrefix[];
25 extern const wchar_t kChromeProtocolPrefix[]; 25 extern const wchar_t kChromeProtocolPrefix[];
26 extern const wchar_t kChromeFrameHeadlessMode[]; 26 extern const wchar_t kChromeFrameHeadlessMode[];
27 extern const wchar_t kChromeFrameUnpinnedMode[]; 27 extern const wchar_t kChromeFrameUnpinnedMode[];
28 extern const wchar_t kEnableGCFProtocol[]; 28 extern const wchar_t kEnableGCFProtocol[];
29 extern const wchar_t kChromeMimeType[]; 29 extern const wchar_t kChromeMimeType[];
30 30
31 typedef enum ProtocolPatchMethod { 31 typedef enum ProtocolPatchMethod {
32 PATCH_METHOD_IBROWSER = 0, 32 PATCH_METHOD_IBROWSER = 0,
33 PATCH_METHOD_INET_PROTOCOL, // 1 33 PATCH_METHOD_INET_PROTOCOL, // 1
34 PATCH_METHOD_IBROWSER_AND_MONIKER, // 2 34 PATCH_METHOD_MONIKER, // 2
35 }; 35 };
36 36
37 // A REG_DWORD config value that maps to the ProtocolPatchMethod enum. 37 // A REG_DWORD config value that maps to the ProtocolPatchMethod enum.
38 // To get the config value, call: 38 // To get the config value, call:
39 // ProtocolPatchMethod patch_method = 39 // ProtocolPatchMethod patch_method =
40 // static_cast<ProtocolPatchMethod>( 40 // static_cast<ProtocolPatchMethod>(
41 // GetConfigInt(PATCH_METHOD_IBROWSER, kPatchProtocols)); 41 // GetConfigInt(PATCH_METHOD_IBROWSER, kPatchProtocols));
42 extern const wchar_t kPatchProtocols[]; 42 extern const wchar_t kPatchProtocols[];
43 43
44 44
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 HRESULT hr = service_provider.QueryFrom(unk); 241 HRESULT hr = service_provider.QueryFrom(unk);
242 if (!service_provider) 242 if (!service_provider)
243 return E_NOINTERFACE; 243 return E_NOINTERFACE;
244 244
245 hr = service_provider->QueryService(service_id, service); 245 hr = service_provider->QueryService(service_id, service);
246 if (*service == NULL) 246 if (*service == NULL)
247 return E_NOINTERFACE; 247 return E_NOINTERFACE;
248 return hr; 248 return hr;
249 } 249 }
250 250
251 // Get url (display name) from a moniker, |bind_context| is optional
252 HRESULT GetUrlFromMoniker(IMoniker* moniker, IBindCtx* bind_context,
253 std::wstring* url);
254
255 // Navigates an IWebBrowser2 object to a moniker. 251 // Navigates an IWebBrowser2 object to a moniker.
256 // |headers| can be NULL. 252 // |headers| can be NULL.
257 HRESULT NavigateBrowserToMoniker(IUnknown* browser, IMoniker* moniker, 253 HRESULT NavigateBrowserToMoniker(IUnknown* browser, IMoniker* moniker,
258 const wchar_t* headers, IBindCtx* bind_ctx, 254 const wchar_t* headers, IBindCtx* bind_ctx,
259 const wchar_t* fragment); 255 const wchar_t* fragment);
260 256
261 // Raises a flag on the current thread (using TLS) to indicate that an 257 // Raises a flag on the current thread (using TLS) to indicate that an
262 // in-progress navigation should be rendered in chrome frame. 258 // in-progress navigation should be rendered in chrome frame.
263 void MarkBrowserOnThreadForCFNavigation(IBrowserService* browser); 259 void MarkBrowserOnThreadForCFNavigation(IBrowserService* browser);
264 260
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 // object. 400 // object.
405 // NOTE: Since the message is sent synchronously, the handler should only 401 // NOTE: Since the message is sent synchronously, the handler should only
406 // start asynchronous operations in order to not block the sender unnecessarily. 402 // start asynchronous operations in order to not block the sender unnecessarily.
407 #define WM_DOWNLOAD_IN_HOST (WM_APP + 2) 403 #define WM_DOWNLOAD_IN_HOST (WM_APP + 2)
408 404
409 // Maps the InternetCookieState enum to the corresponding CookieAction values 405 // Maps the InternetCookieState enum to the corresponding CookieAction values
410 // used for IE privacy stuff. 406 // used for IE privacy stuff.
411 int32 MapCookieStateToCookieAction(InternetCookieState cookie_state); 407 int32 MapCookieStateToCookieAction(InternetCookieState cookie_state);
412 408
413 #endif // CHROME_FRAME_UTILS_H_ 409 #endif // CHROME_FRAME_UTILS_H_
OLDNEW
« chrome_frame/bho.h ('K') | « chrome_frame/urlmon_url_request_private.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698