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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
96 virtual ExtraData* extraData() const = 0; | 96 virtual ExtraData* extraData() const = 0; |
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 // Gets the navigation start time. Useful if the embedder wants the | |
107 // navigation start time in the same format they set it in, rather than the | |
108 // wall time that WebPerformance reports. | |
109 virtual double getNavigationStartTime() = 0; | |
clamy
2015/10/28 12:40:01
What is the issue with getting the time back as a
Charlie Harrison
2015/10/28 14:45:00
DocumentLoadTiming stores the timing as TimeTicks
| |
106 | 110 |
107 protected: | 111 protected: |
108 ~WebDataSource() { } | 112 ~WebDataSource() { } |
109 }; | 113 }; |
110 | 114 |
111 } // namespace blink | 115 } // namespace blink |
112 | 116 |
113 #endif | 117 #endif |
OLD | NEW |