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

Side by Side Diff: chrome/renderer/render_view.h

Issue 115575: Move ExtraData from WebRequest to WebDataSource.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « no previous file | chrome/renderer/render_view.cc » ('j') | chrome/renderer/render_view.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <queue> 9 #include <queue>
10 #include <vector> 10 #include <vector>
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 WebFileChooserCallback* file_chooser); 164 WebFileChooserCallback* file_chooser);
165 virtual void AddMessageToConsole(WebView* webview, 165 virtual void AddMessageToConsole(WebView* webview,
166 const std::wstring& message, 166 const std::wstring& message,
167 unsigned int line_no, 167 unsigned int line_no,
168 const std::wstring& source_id); 168 const std::wstring& source_id);
169 169
170 virtual void DebuggerOutput(const std::wstring& out); 170 virtual void DebuggerOutput(const std::wstring& out);
171 171
172 virtual void DidStartLoading(WebView* webview); 172 virtual void DidStartLoading(WebView* webview);
173 virtual void DidStopLoading(WebView* webview); 173 virtual void DidStopLoading(WebView* webview);
174 virtual void DidCreateDataSource(WebFrame* frame, WebDataSource* ds);
174 virtual void DidStartProvisionalLoadForFrame( 175 virtual void DidStartProvisionalLoadForFrame(
175 WebView* webview, 176 WebView* webview,
176 WebFrame* frame, 177 WebFrame* frame,
177 NavigationGesture gesture); 178 NavigationGesture gesture);
178 virtual void DidReceiveProvisionalLoadServerRedirect(WebView* webview, 179 virtual void DidReceiveProvisionalLoadServerRedirect(WebView* webview,
179 WebFrame* frame); 180 WebFrame* frame);
180 virtual void DidFailProvisionalLoadWithError(WebView* webview, 181 virtual void DidFailProvisionalLoadWithError(WebView* webview,
181 const WebError& error, 182 const WebError& error,
182 WebFrame* frame); 183 WebFrame* frame);
183 virtual void LoadNavigationErrorPage(WebFrame* frame, 184 virtual void LoadNavigationErrorPage(WebFrame* frame,
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 // Cache the preferred width of the page in order to prevent sending the IPC 795 // Cache the preferred width of the page in order to prevent sending the IPC
795 // when layout() recomputes it but it doesn't actually change. 796 // when layout() recomputes it but it doesn't actually change.
796 int preferred_width_; 797 int preferred_width_;
797 798
798 // If true, we send IPC messages when the preferred width changes. 799 // If true, we send IPC messages when the preferred width changes.
799 bool send_preferred_width_changes_; 800 bool send_preferred_width_changes_;
800 801
801 // The text selection the last time DidChangeSelection got called. 802 // The text selection the last time DidChangeSelection got called.
802 std::string last_selection_; 803 std::string last_selection_;
803 804
805 // Holds state pertaining to a navigation that we initiated. This is held by
806 // the WebDataSource::ExtraData attribute. We use pending_navigation_state_
807 // as a temporary holder for the state until the WebDataSource corresponding
808 // to the new navigation is created. See DidCreateDataSource.
809 class NavigationState;
810 scoped_ptr<NavigationState> pending_navigation_state_;
811
804 DISALLOW_COPY_AND_ASSIGN(RenderView); 812 DISALLOW_COPY_AND_ASSIGN(RenderView);
805 }; 813 };
806 814
807 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 815 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/render_view.cc » ('j') | chrome/renderer/render_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698