Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: public/web/WebDataSource.h

Issue 790383002: Remove NavigationAction (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // client redirect. 82 // client redirect.
83 virtual bool isClientRedirect() const = 0; 83 virtual bool isClientRedirect() const = 0;
84 84
85 // Returns whether the navigation associated with this datasource should 85 // Returns whether the navigation associated with this datasource should
86 // replace the current history item. 86 // replace the current history item.
87 virtual bool replacesCurrentHistoryItem() const = 0; 87 virtual bool replacesCurrentHistoryItem() const = 0;
88 88
89 // The type of navigation that triggered the creation of this datasource. 89 // The type of navigation that triggered the creation of this datasource.
90 virtual WebNavigationType navigationType() const = 0; 90 virtual WebNavigationType navigationType() const = 0;
91 91
92 // The time in seconds (since the epoch) of the event that triggered
93 // the creation of this datasource. Returns 0 if unknown.
94 virtual double triggeringEventTime() const = 0;
95
96 // Extra data associated with this datasource. If non-null, the extra 92 // Extra data associated with this datasource. If non-null, the extra
97 // data pointer will be deleted when the datasource is destroyed. 93 // data pointer will be deleted when the datasource is destroyed.
98 // Setting the extra data pointer will cause any existing non-null 94 // Setting the extra data pointer will cause any existing non-null
99 // extra data pointer to be deleted. 95 // extra data pointer to be deleted.
100 virtual ExtraData* extraData() const = 0; 96 virtual ExtraData* extraData() const = 0;
101 virtual void setExtraData(ExtraData*) = 0; 97 virtual void setExtraData(ExtraData*) = 0;
102 98
103 // Sets the navigation start time for this datasource. Ordinarily, 99 // Sets the navigation start time for this datasource. Ordinarily,
104 // navigation start is determined in WebCore. But, in some situations, 100 // navigation start is determined in WebCore. But, in some situations,
105 // 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
106 // should be called before WebFrameClient::didCommitProvisionalLoad. 102 // should be called before WebFrameClient::didCommitProvisionalLoad.
107 // 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
108 // the user may have already recorded the original value. 104 // the user may have already recorded the original value.
109 virtual void setNavigationStartTime(double) = 0; 105 virtual void setNavigationStartTime(double) = 0;
110 106
111 protected: 107 protected:
112 ~WebDataSource() { } 108 ~WebDataSource() { }
113 }; 109 };
114 110
115 } // namespace blink 111 } // namespace blink
116 112
117 #endif 113 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698