OLD | NEW |
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 Loading... |
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 |
OLD | NEW |