| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_GLUE_WEBDATASOURCE_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBDATASOURCE_IMPL_H_ |
| 6 #define WEBKIT_GLUE_WEBDATASOURCE_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBDATASOURCE_IMPL_H_ |
| 7 | 7 |
| 8 #include "DocumentLoader.h" | 8 #include "DocumentLoader.h" |
| 9 | 9 |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 virtual const PasswordForm* GetPasswordFormData() const; | 37 virtual const PasswordForm* GetPasswordFormData() const; |
| 38 virtual bool IsFormSubmit() const; | 38 virtual bool IsFormSubmit() const; |
| 39 virtual string16 GetPageTitle() const; | 39 virtual string16 GetPageTitle() const; |
| 40 virtual base::Time GetRequestTime() const; | 40 virtual base::Time GetRequestTime() const; |
| 41 virtual void SetRequestTime(base::Time time); | 41 virtual void SetRequestTime(base::Time time); |
| 42 virtual base::Time GetStartLoadTime() const; | 42 virtual base::Time GetStartLoadTime() const; |
| 43 virtual base::Time GetFinishDocumentLoadTime() const; | 43 virtual base::Time GetFinishDocumentLoadTime() const; |
| 44 virtual base::Time GetFinishLoadTime() const; | 44 virtual base::Time GetFinishLoadTime() const; |
| 45 virtual base::Time GetFirstLayoutTime() const; | 45 virtual base::Time GetFirstLayoutTime() const; |
| 46 virtual WebNavigationType GetNavigationType() const; | 46 virtual WebNavigationType GetNavigationType() const; |
| 47 virtual ExtraData* GetExtraData() const; |
| 48 virtual void SetExtraData(ExtraData*); |
| 47 | 49 |
| 48 static WebNavigationType NavigationTypeToWebNavigationType( | 50 static WebNavigationType NavigationTypeToWebNavigationType( |
| 49 WebCore::NavigationType type); | 51 WebCore::NavigationType type); |
| 50 | 52 |
| 51 // Called after creating a new data source if there is request info | |
| 52 // available. Since we store copies of the WebRequests, the original | |
| 53 // WebRequest that the embedder created was lost, and the exra data would | |
| 54 // go with it. This preserves the request info so retrieving the requests | |
| 55 // later will have the same data. | |
| 56 void SetExtraData(WebRequest::ExtraData* extra); | |
| 57 | |
| 58 void ClearRedirectChain(); | 53 void ClearRedirectChain(); |
| 59 void AppendRedirect(const GURL& url); | 54 void AppendRedirect(const GURL& url); |
| 60 | 55 |
| 61 // Sets the SearchableFormData for this DocumentLoader. | 56 // Sets the SearchableFormData for this DocumentLoader. |
| 62 // WebDocumentLoaderImpl will own the SearchableFormData. | 57 // WebDocumentLoaderImpl will own the SearchableFormData. |
| 63 void set_searchable_form_data(SearchableFormData* searchable_form_data) { | 58 void set_searchable_form_data(SearchableFormData* searchable_form_data) { |
| 64 searchable_form_data_.reset(searchable_form_data); | 59 searchable_form_data_.reset(searchable_form_data); |
| 65 } | 60 } |
| 66 // Returns the SearchableFormData for this DocumentLoader. | 61 // Returns the SearchableFormData for this DocumentLoader. |
| 67 // WebDocumentLoaderImpl owns the returned SearchableFormData. | 62 // WebDocumentLoaderImpl owns the returned SearchableFormData. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 115 |
| 121 // Lists all intermediate URLs that have redirected for the current | 116 // Lists all intermediate URLs that have redirected for the current |
| 122 // provisional load. See WebFrameLoaderClient:: | 117 // provisional load. See WebFrameLoaderClient:: |
| 123 // dispatchDidReceiveServerRedirectForProvisionalLoad for a description of | 118 // dispatchDidReceiveServerRedirectForProvisionalLoad for a description of |
| 124 // who modifies this when to keep it up to date. | 119 // who modifies this when to keep it up to date. |
| 125 std::vector<GURL> redirect_chain_; | 120 std::vector<GURL> redirect_chain_; |
| 126 | 121 |
| 127 scoped_ptr<const SearchableFormData> searchable_form_data_; | 122 scoped_ptr<const SearchableFormData> searchable_form_data_; |
| 128 scoped_ptr<const PasswordForm> password_form_data_; | 123 scoped_ptr<const PasswordForm> password_form_data_; |
| 129 | 124 |
| 125 OwnPtr<ExtraData> extra_data_; |
| 126 |
| 130 bool form_submit_; | 127 bool form_submit_; |
| 131 | 128 |
| 132 // See webdatasource.h for a description of these time stamps. | 129 // See webdatasource.h for a description of these time stamps. |
| 133 base::Time request_time_; | 130 base::Time request_time_; |
| 134 base::Time start_load_time_; | 131 base::Time start_load_time_; |
| 135 base::Time finish_document_load_time_; | 132 base::Time finish_document_load_time_; |
| 136 base::Time finish_load_time_; | 133 base::Time finish_load_time_; |
| 137 base::Time first_layout_time_; | 134 base::Time first_layout_time_; |
| 138 | 135 |
| 139 DISALLOW_COPY_AND_ASSIGN(WebDataSourceImpl); | 136 DISALLOW_COPY_AND_ASSIGN(WebDataSourceImpl); |
| 140 }; | 137 }; |
| 141 | 138 |
| 142 #endif // WEBKIT_GLUE_WEBDATASOURCE_IMPL_H_ | 139 #endif // WEBKIT_GLUE_WEBDATASOURCE_IMPL_H_ |
| OLD | NEW |