| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "config.h" | 5 #include "config.h" |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 using base::TimeDelta; | 72 using base::TimeDelta; |
| 73 | 73 |
| 74 using WebKit::WebData; | 74 using WebKit::WebData; |
| 75 using WebKit::WebNavigationType; | 75 using WebKit::WebNavigationType; |
| 76 using WebKit::WebString; | 76 using WebKit::WebString; |
| 77 using WebKit::WebURL; | 77 using WebKit::WebURL; |
| 78 using WebKit::WebVector; | 78 using WebKit::WebVector; |
| 79 using WebKit::WrappedResourceRequest; | 79 using WebKit::WrappedResourceRequest; |
| 80 using WebKit::WrappedResourceResponse; | 80 using WebKit::WrappedResourceResponse; |
| 81 | 81 |
| 82 using webkit_glue::Alt404PageResourceFetcher; |
| 83 |
| 82 // Domain for internal error codes. | 84 // Domain for internal error codes. |
| 83 static const char kInternalErrorDomain[] = "webkit_glue"; | 85 static const char kInternalErrorDomain[] = "webkit_glue"; |
| 84 | 86 |
| 85 // An internal error code. Used to note a policy change error resulting from | 87 // An internal error code. Used to note a policy change error resulting from |
| 86 // dispatchDecidePolicyForMIMEType not passing the PolicyUse option. | 88 // dispatchDecidePolicyForMIMEType not passing the PolicyUse option. |
| 87 enum { | 89 enum { |
| 88 ERR_POLICY_CHANGE = -10000, | 90 ERR_POLICY_CHANGE = -10000, |
| 89 }; | 91 }; |
| 90 | 92 |
| 91 WebFrameLoaderClient::WebFrameLoaderClient(WebFrameImpl* frame) : | 93 WebFrameLoaderClient::WebFrameLoaderClient(WebFrameImpl* frame) : |
| (...skipping 1417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1509 | 1511 |
| 1510 std::string offset_str = url.ExtractFileName(); | 1512 std::string offset_str = url.ExtractFileName(); |
| 1511 int offset; | 1513 int offset; |
| 1512 if (!StringToInt(offset_str, &offset)) | 1514 if (!StringToInt(offset_str, &offset)) |
| 1513 return; | 1515 return; |
| 1514 | 1516 |
| 1515 WebViewDelegate* d = webframe_->GetWebViewImpl()->delegate(); | 1517 WebViewDelegate* d = webframe_->GetWebViewImpl()->delegate(); |
| 1516 if (d) | 1518 if (d) |
| 1517 d->NavigateBackForwardSoon(offset); | 1519 d->NavigateBackForwardSoon(offset); |
| 1518 } | 1520 } |
| OLD | NEW |