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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 483773002: PlzNavigate: implement CommitNavigation on the browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using non-inherited structs Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/id_map.h" 16 #include "base/id_map.h"
17 #include "base/memory/linked_ptr.h" 17 #include "base/memory/linked_ptr.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/observer_list.h" 19 #include "base/observer_list.h"
20 #include "base/process/process.h" 20 #include "base/process/process.h"
21 #include "base/strings/string16.h" 21 #include "base/strings/string16.h"
22 #include "base/timer/timer.h" 22 #include "base/timer/timer.h"
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 #include "cc/input/top_controls_state.h" 24 #include "cc/input/top_controls_state.h"
25 #include "cc/resources/shared_bitmap.h" 25 #include "cc/resources/shared_bitmap.h"
26 #include "content/common/content_export.h" 26 #include "content/common/content_export.h"
27 #include "content/common/drag_event_source_info.h" 27 #include "content/common/drag_event_source_info.h"
28 #include "content/common/edit_command.h" 28 #include "content/common/edit_command.h"
29 #include "content/common/frame_message_enums.h"
29 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 30 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
30 #include "content/common/navigation_gesture.h" 31 #include "content/common/navigation_gesture.h"
32 #include "content/common/navigation_params.h"
31 #include "content/common/view_message_enums.h" 33 #include "content/common/view_message_enums.h"
32 #include "content/public/common/page_zoom.h" 34 #include "content/public/common/page_zoom.h"
33 #include "content/public/common/referrer.h" 35 #include "content/public/common/referrer.h"
34 #include "content/public/common/renderer_preferences.h" 36 #include "content/public/common/renderer_preferences.h"
35 #include "content/public/common/stop_find_action.h" 37 #include "content/public/common/stop_find_action.h"
36 #include "content/public/common/top_controls_state.h" 38 #include "content/public/common/top_controls_state.h"
37 #include "content/public/common/web_preferences.h" 39 #include "content/public/common/web_preferences.h"
38 #include "content/public/renderer/render_view.h" 40 #include "content/public/renderer/render_view.h"
39 #include "content/renderer/mouse_lock_dispatcher.h" 41 #include "content/renderer/mouse_lock_dispatcher.h"
40 #include "content/renderer/render_frame_impl.h" 42 #include "content/renderer/render_frame_impl.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 class MouseLockDispatcher; 134 class MouseLockDispatcher;
133 class NavigationState; 135 class NavigationState;
134 class PepperPluginInstanceImpl; 136 class PepperPluginInstanceImpl;
135 class RenderViewImplTest; 137 class RenderViewImplTest;
136 class RenderViewObserver; 138 class RenderViewObserver;
137 class RenderViewTest; 139 class RenderViewTest;
138 class RendererDateTimePicker; 140 class RendererDateTimePicker;
139 class RendererWebColorChooserImpl; 141 class RendererWebColorChooserImpl;
140 class SpeechRecognitionDispatcher; 142 class SpeechRecognitionDispatcher;
141 class WebPluginDelegateProxy; 143 class WebPluginDelegateProxy;
144 struct CommitNavigationParams;
142 struct DropData; 145 struct DropData;
143 struct FaviconURL; 146 struct FaviconURL;
144 struct FileChooserParams; 147 struct FileChooserParams;
145 struct RenderViewImplParams; 148 struct RenderViewImplParams;
146 149
147 #if defined(OS_ANDROID) 150 #if defined(OS_ANDROID)
148 class WebMediaPlayerProxyAndroid; 151 class WebMediaPlayerProxyAndroid;
149 #endif 152 #endif
150 153
151 // 154 //
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 // still live here and are called from RenderFrameImpl. These implementations 629 // still live here and are called from RenderFrameImpl. These implementations
627 // are to be moved to RenderFrameImpl <http://crbug.com/361761>. 630 // are to be moved to RenderFrameImpl <http://crbug.com/361761>.
628 631
629 void didCreateDataSource(blink::WebLocalFrame* frame, 632 void didCreateDataSource(blink::WebLocalFrame* frame,
630 blink::WebDataSource* datasource); 633 blink::WebDataSource* datasource);
631 void didClearWindowObject(blink::WebLocalFrame* frame); 634 void didClearWindowObject(blink::WebLocalFrame* frame);
632 void didChangeIcon(blink::WebLocalFrame*, blink::WebIconURL::Type); 635 void didChangeIcon(blink::WebLocalFrame*, blink::WebIconURL::Type);
633 void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame); 636 void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame);
634 void didChangeScrollOffset(blink::WebLocalFrame* frame); 637 void didChangeScrollOffset(blink::WebLocalFrame* frame);
635 638
636 static bool IsReload(const FrameMsg_Navigate_Params& params); 639 static bool IsReload(FrameMsg_Navigate_Type::Value navigation_type);
637 640
638 static Referrer GetReferrerFromRequest( 641 static Referrer GetReferrerFromRequest(
639 blink::WebFrame* frame, 642 blink::WebFrame* frame,
640 const blink::WebURLRequest& request); 643 const blink::WebURLRequest& request);
641 644
642 static WindowOpenDisposition NavigationPolicyToDisposition( 645 static WindowOpenDisposition NavigationPolicyToDisposition(
643 blink::WebNavigationPolicy policy); 646 blink::WebNavigationPolicy policy);
644 647
645 void UpdateSessionHistory(blink::WebFrame* frame); 648 void UpdateSessionHistory(blink::WebFrame* frame);
646 void SendUpdateState(HistoryEntry* entry); 649 void SendUpdateState(HistoryEntry* entry);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 // frames, the frame whose size is image_size is returned. If the image 770 // frames, the frame whose size is image_size is returned. If the image
768 // doesn't have a frame at the specified size, the first is returned. 771 // doesn't have a frame at the specified size, the first is returned.
769 bool DownloadFavicon(int id, const GURL& image_url, int image_size); 772 bool DownloadFavicon(int id, const GURL& image_url, int image_size);
770 773
771 // Called to get the WebPlugin to handle find requests in the document. 774 // Called to get the WebPlugin to handle find requests in the document.
772 // Returns NULL if there is no such WebPlugin. 775 // Returns NULL if there is no such WebPlugin.
773 blink::WebPlugin* GetWebPluginForFind(); 776 blink::WebPlugin* GetWebPluginForFind();
774 777
775 // Returns true if the |params| navigation is to an entry that has been 778 // Returns true if the |params| navigation is to an entry that has been
776 // cropped due to a recent navigation the browser did not know about. 779 // cropped due to a recent navigation the browser did not know about.
777 bool IsBackForwardToStaleEntry(const FrameMsg_Navigate_Params& params, 780 bool IsBackForwardToStaleEntry(const CommitNavigationParams& params,
778 bool is_reload); 781 bool is_reload);
779 782
780 // Make the given |frame| show an empty, unscriptable page. 783 // Make the given |frame| show an empty, unscriptable page.
781 // TODO(creis): Move this to RenderFrame. 784 // TODO(creis): Move this to RenderFrame.
782 void NavigateToSwappedOutURL(blink::WebFrame* frame); 785 void NavigateToSwappedOutURL(blink::WebFrame* frame);
783 786
784 // If we initiated a navigation, this function will populate |document_state| 787 // If we initiated a navigation, this function will populate |document_state|
785 // with the navigation information saved in OnNavigate(). 788 // with the navigation information saved in OnNavigate().
786 void PopulateDocumentStateFromPending(DocumentState* document_state); 789 void PopulateDocumentStateFromPending(DocumentState* document_state);
787 790
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 // use the Observer interface to filter IPC messages and receive frame change 1134 // use the Observer interface to filter IPC messages and receive frame change
1132 // notifications. 1135 // notifications.
1133 // --------------------------------------------------------------------------- 1136 // ---------------------------------------------------------------------------
1134 1137
1135 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1138 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1136 }; 1139 };
1137 1140
1138 } // namespace content 1141 } // namespace content
1139 1142
1140 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1143 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698