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

Side by Side Diff: chrome_frame/protocol_sink_wrap.h

Issue 3131003: Support GCF as the default HTML viewer. I simply extended the IsOptInUrl che... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | « no previous file | chrome_frame/protocol_sink_wrap.cc » ('j') | chrome_frame/utils.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PROTOCOL_SINK_WRAP_H_ 5 #ifndef CHROME_FRAME_PROTOCOL_SINK_WRAP_H_
6 #define CHROME_FRAME_PROTOCOL_SINK_WRAP_H_ 6 #define CHROME_FRAME_PROTOCOL_SINK_WRAP_H_
7 7
8 #include <exdisp.h> 8 #include <exdisp.h>
9 #include <urlmon.h> 9 #include <urlmon.h>
10 #include <atlbase.h> 10 #include <atlbase.h>
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 RendererType renderer_type_; 167 RendererType renderer_type_;
168 168
169 // Buffer for accumulated data including 1 extra for NULL-terminator 169 // Buffer for accumulated data including 1 extra for NULL-terminator
170 static const size_t kMaxContentSniffLength = 2 * 1024; 170 static const size_t kMaxContentSniffLength = 2 * 1024;
171 char buffer_[kMaxContentSniffLength + 1]; 171 char buffer_[kMaxContentSniffLength + 1];
172 unsigned long buffer_size_; // NOLINT 172 unsigned long buffer_size_; // NOLINT
173 unsigned long buffer_pos_; // NOLINT 173 unsigned long buffer_pos_; // NOLINT
174 174
175 HRESULT FillBuffer(); 175 HRESULT FillBuffer();
176 void SaveSuggestedMimeType(LPCWSTR status_text); 176 void SaveSuggestedMimeType(LPCWSTR status_text);
177 void FireSugestedMimeType(IInternetProtocolSink* delegate); 177 void FireSuggestedMimeType(IInternetProtocolSink* delegate);
178 void SaveReferrer(IInternetProtocolSink* delegate); 178 void SaveReferrer(IInternetProtocolSink* delegate);
179 }; 179 };
180 180
181 struct TransactionHooks { 181 struct TransactionHooks {
182 void InstallHooks(); 182 void InstallHooks();
183 void RevertHooks(); 183 void RevertHooks();
184 }; 184 };
185 185
186 DECLSPEC_SELECTANY struct TransactionHooks g_trans_hooks; 186 DECLSPEC_SELECTANY struct TransactionHooks g_trans_hooks;
187 187
188 #endif // CHROME_FRAME_PROTOCOL_SINK_WRAP_H_ 188 #endif // CHROME_FRAME_PROTOCOL_SINK_WRAP_H_
189 189
OLDNEW
« no previous file with comments | « no previous file | chrome_frame/protocol_sink_wrap.cc » ('j') | chrome_frame/utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698