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

Side by Side Diff: webkit/glue/webdatasource.h

Issue 42527: - Added support for keeping track of load times.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months 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
« no previous file with comments | « chrome/renderer/renderer_main.cc ('k') | webkit/glue/webdatasource_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_H_ 5 #ifndef WEBKIT_GLUE_WEBDATASOURCE_H_
6 #define WEBKIT_GLUE_WEBDATASOURCE_H_ 6 #define WEBKIT_GLUE_WEBDATASOURCE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
11 11
12 class GURL; 12 class GURL;
13 class SearchableFormData; 13 class SearchableFormData;
14 class WebFrame; 14 class WebFrame;
15 class WebRequest; 15 class WebRequest;
16 class WebResponse; 16 class WebResponse;
17
18 namespace base {
19 class Time;
20 }
21
17 struct PasswordForm; 22 struct PasswordForm;
18 23
24 enum WebNavigationType {
25 WebNavigationTypeLinkClicked,
26 WebNavigationTypeFormSubmitted,
27 WebNavigationTypeBackForward,
28 WebNavigationTypeReload,
29 WebNavigationTypeFormResubmitted,
30 WebNavigationTypeOther
31 };
32
19 class WebDataSource { 33 class WebDataSource {
20 public: 34 public:
21 virtual ~WebDataSource() {} 35 virtual ~WebDataSource() {}
22 36
23 // Returns the frame that represents this data source. 37 // Returns the frame that represents this data source.
24 virtual WebFrame* GetWebFrame() = 0; 38 virtual WebFrame* GetWebFrame() = 0;
25 39
26 // Returns a reference to the original request data that created the 40 // Returns a reference to the original request data that created the
27 // datasource. This request will be unmodified by WebKit. 41 // datasource. This request will be unmodified by WebKit.
28 // 42 //
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // WebDataSource (actually the WebDocumentLoader) and shouldn't be freed. 88 // WebDataSource (actually the WebDocumentLoader) and shouldn't be freed.
75 virtual const PasswordForm* GetPasswordFormData() const = 0; 89 virtual const PasswordForm* GetPasswordFormData() const = 0;
76 90
77 // Returns true if this request was the result of submitting a form. 91 // Returns true if this request was the result of submitting a form.
78 // NOTE: this returns false if the user submitted a form, but the form used 92 // NOTE: this returns false if the user submitted a form, but the form used
79 // script to do the actuall submission. 93 // script to do the actuall submission.
80 virtual bool IsFormSubmit() const = 0; 94 virtual bool IsFormSubmit() const = 0;
81 95
82 // Returns the page title. 96 // Returns the page title.
83 virtual string16 GetPageTitle() const = 0; 97 virtual string16 GetPageTitle() const = 0;
98
99 // Returns the time the document was request by the user.
100 virtual base::Time GetRequestTime() const = 0;
101
102 // Sets the request time. This is used to override the default behavior
103 // if the client knows more about the origination of the request than the
104 // underlying mechanism could.
105 virtual void SetRequestTime(base::Time time) = 0;
106
107 // Returns the time we started loading the page. This corresponds to
108 // the DidStartProvisionalLoadForFrame delegate notification.
109 virtual base::Time GetStartLoadTime() const = 0;
110
111 // Returns the time the document itself was finished loading. This corresponds
112 // to the DidFinishDocumentLoadForFrame delegate notification.
113 virtual base::Time GetFinishDocumentLoadTime() const = 0;
114
115 // Returns the time all dependent resources have been loaded and onload()
116 // has been called. This corresponds to the DidFinishLoadForFrame delegate
117 // notification.
118 virtual base::Time GetFinishLoadTime() const = 0;
119
120 // Returns the reason the document was loaded.
121 virtual WebNavigationType GetNavigationType() const = 0;
84 }; 122 };
85 123
86 #endif // #ifndef WEBKIT_GLUE_WEBDATASOURCE_H_ 124 #endif // #ifndef WEBKIT_GLUE_WEBDATASOURCE_H_
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_main.cc ('k') | webkit/glue/webdatasource_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698