| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 virtual void setExtraData(ExtraData*) = 0; | 97 virtual void setExtraData(ExtraData*) = 0; |
| 98 | 98 |
| 99 // Sets the navigation start time for this datasource. Ordinarily, | 99 // Sets the navigation start time for this datasource. Ordinarily, |
| 100 // navigation start is determined in WebCore. But, in some situations, | 100 // navigation start is determined in WebCore. But, in some situations, |
| 101 // the embedder might have a better value and can override it here. This | 101 // the embedder might have a better value and can override it here. This |
| 102 // should be called before WebFrameClient::didCommitProvisionalLoad. | 102 // should be called before WebFrameClient::didCommitProvisionalLoad. |
| 103 // Calling it later may confuse users, because JavaScript may have run and | 103 // Calling it later may confuse users, because JavaScript may have run and |
| 104 // the user may have already recorded the original value. | 104 // the user may have already recorded the original value. |
| 105 virtual void setNavigationStartTime(double) = 0; | 105 virtual void setNavigationStartTime(double) = 0; |
| 106 | 106 |
| 107 // Gets the navigation start time. Useful if the embedder wants the |
| 108 // navigation start time in the reported monotonicallyIncreasingTime format |
| 109 // rather than the epoch time reported by WebPerformance, or they want the |
| 110 // value they set in setNavigationStartTime. |
| 111 virtual double getNavigationStartTime() = 0; |
| 112 |
| 107 protected: | 113 protected: |
| 108 ~WebDataSource() { } | 114 ~WebDataSource() { } |
| 109 }; | 115 }; |
| 110 | 116 |
| 111 } // namespace blink | 117 } // namespace blink |
| 112 | 118 |
| 113 #endif | 119 #endif |
| OLD | NEW |