| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // Calling it later may confuse users, because JavaScript may have run and | 105 // Calling it later may confuse users, because JavaScript may have run and |
| 106 // the user may have already recorded the original value. | 106 // the user may have already recorded the original value. |
| 107 virtual void setNavigationStartTime(double) = 0; | 107 virtual void setNavigationStartTime(double) = 0; |
| 108 | 108 |
| 109 // Sets timing and attributes of the navigation. | 109 // Sets timing and attributes of the navigation. |
| 110 // Ordinarily, they are determined in WebCore, but when the navigation is | 110 // Ordinarily, they are determined in WebCore, but when the navigation is |
| 111 // handled by the client, they can be passed here. | 111 // handled by the client, they can be passed here. |
| 112 virtual void updateNavigation(double redirectStartTime, | 112 virtual void updateNavigation(double redirectStartTime, |
| 113 double redirectEndTime, | 113 double redirectEndTime, |
| 114 double fetchStartTime, | 114 double fetchStartTime, |
| 115 const WebVector<WebURL>& redirectChain) = 0; | 115 bool hasRedirect) = 0; |
| 116 | 116 |
| 117 // Allows the embedder to inject a filter that will be consulted for each | 117 // Allows the embedder to inject a filter that will be consulted for each |
| 118 // subsequent subresource load, and gets the final say in deciding whether | 118 // subsequent subresource load, and gets the final say in deciding whether |
| 119 // or not to allow the load. The passed-in filter object is deleted when the | 119 // or not to allow the load. The passed-in filter object is deleted when the |
| 120 // datasource is destroyed or when a new filter is set. | 120 // datasource is destroyed or when a new filter is set. |
| 121 virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0; | 121 virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0; |
| 122 | 122 |
| 123 protected: | 123 protected: |
| 124 ~WebDataSource() {} | 124 ~WebDataSource() {} |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace blink | 127 } // namespace blink |
| 128 | 128 |
| 129 #endif | 129 #endif |
| OLD | NEW |