| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // navigation start is determined in WebCore. But, in some situations, | 101 // navigation start is determined in WebCore. But, in some situations, |
| 102 // the embedder might have a better value and can override it here. This | 102 // the embedder might have a better value and can override it here. This |
| 103 // should be called before WebFrameClient::didCommitProvisionalLoad. | 103 // should be called before WebFrameClient::didCommitProvisionalLoad. |
| 104 // Calling it later may confuse users, because JavaScript may have run and | 104 // Calling it later may confuse users, because JavaScript may have run and |
| 105 // the user may have already recorded the original value. | 105 // the user may have already recorded the original value. |
| 106 virtual void setNavigationStartTime(double) = 0; | 106 virtual void setNavigationStartTime(double) = 0; |
| 107 | 107 |
| 108 // Sets timing and attributes of the navigation. | 108 // Sets timing and attributes of the navigation. |
| 109 // Ordinarily, they are determined in WebCore, but when the navigation is | 109 // Ordinarily, they are determined in WebCore, but when the navigation is |
| 110 // handled by the client, they can be passed here. | 110 // handled by the client, they can be passed here. |
| 111 virtual void updateNavigationTimings(double redirectStartTime, double redire
ctEndTime, double fetchStartTime, const WebVector<WebURL>& redirectChain) = 0; | 111 virtual void updateNavigation(double redirectStartTime, double redirectEndTi
me, double fetchStartTime, const WebVector<WebURL>& redirectChain) = 0; |
| 112 | 112 |
| 113 // Allows the embedder to inject a filter that will be consulted for each | 113 // Allows the embedder to inject a filter that will be consulted for each |
| 114 // subsequent subresource load, and gets the final say in deciding whether | 114 // subsequent subresource load, and gets the final say in deciding whether |
| 115 // or not to allow the load. The passed-in filter object is deleted when the | 115 // or not to allow the load. The passed-in filter object is deleted when the |
| 116 // datasource is destroyed or when a new filter is set. | 116 // datasource is destroyed or when a new filter is set. |
| 117 virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0; | 117 virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0; |
| 118 | 118 |
| 119 protected: | 119 protected: |
| 120 ~WebDataSource() { } | 120 ~WebDataSource() { } |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace blink | 123 } // namespace blink |
| 124 | 124 |
| 125 #endif | 125 #endif |
| OLD | NEW |