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

Side by Side Diff: chrome_frame/np_browser_functions.cc

Issue 6381005: Implement a poor mans redirect handling in ChromeFrame for browsers which don... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/np_browser_functions.h ('k') | chrome_frame/npapi_url_request.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) 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 #include "chrome_frame/np_browser_functions.h" 5 #include "chrome_frame/np_browser_functions.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace npapi { 9 namespace npapi {
10 10
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 int len = str.length(); 520 int len = str.length();
521 NPUTF8* buffer = reinterpret_cast<NPUTF8*>(npapi::MemAlloc(len + 1)); 521 NPUTF8* buffer = reinterpret_cast<NPUTF8*>(npapi::MemAlloc(len + 1));
522 if (buffer) { 522 if (buffer) {
523 buffer[len] = '\0'; 523 buffer[len] = '\0';
524 memcpy(buffer, str.c_str(), len); 524 memcpy(buffer, str.c_str(), len);
525 STRINGN_TO_NPVARIANT(buffer, len, *var); 525 STRINGN_TO_NPVARIANT(buffer, len, *var);
526 } else { 526 } else {
527 NULL_TO_NPVARIANT(*var); 527 NULL_TO_NPVARIANT(*var);
528 } 528 }
529 } 529 }
530
531 bool BrowserSupportsRedirectNotification() {
532 return npapi::g_urlredirectresponse != NULL;
533 }
OLDNEW
« no previous file with comments | « chrome_frame/np_browser_functions.h ('k') | chrome_frame/npapi_url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698