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

Side by Side Diff: chrome_frame/chrome_frame_npapi.cc

Issue 6223003: Add support in the ChromeFrame NPAPI plugin for receiving URL redirect notifi... (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/chrome_frame_npapi.h ('k') | chrome_frame/chrome_frame_npapi_entrypoints.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/chrome_frame_npapi.h" 5 #include "chrome_frame/chrome_frame_npapi.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_split.h" 10 #include "base/string_split.h"
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 } 1502 }
1503 1503
1504 int32 ChromeFrameNPAPI::Write(NPStream* stream, int32 offset, int32 len, 1504 int32 ChromeFrameNPAPI::Write(NPStream* stream, int32 offset, int32 len,
1505 void* buffer) { 1505 void* buffer) {
1506 return url_fetcher_.Write(stream, offset, len, buffer); 1506 return url_fetcher_.Write(stream, offset, len, buffer);
1507 } 1507 }
1508 1508
1509 NPError ChromeFrameNPAPI::DestroyStream(NPStream* stream, NPReason reason) { 1509 NPError ChromeFrameNPAPI::DestroyStream(NPStream* stream, NPReason reason) {
1510 return url_fetcher_.DestroyStream(stream, reason); 1510 return url_fetcher_.DestroyStream(stream, reason);
1511 } 1511 }
1512
1513 void ChromeFrameNPAPI::URLRedirectNotify(const char* url, int status,
1514 void* notify_data) {
1515 DVLOG(1) << __FUNCTION__
1516 << "Received redirect notification for url:"
1517 << url;
1518 // Inform chrome about the redirect and disallow the current redirect
1519 // attempt.
1520 url_fetcher_.UrlRedirectNotify(url, status, notify_data);
1521 npapi::URLRedirectResponse(instance_, notify_data, false);
1522 }
1523
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_npapi.h ('k') | chrome_frame/chrome_frame_npapi_entrypoints.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698