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

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

Issue 509063004: Move ViewMsg_Stop from RenderViewHost to RenderFrameHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another rebase to fix patch failure. 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 | Annotate | Revision Log
« no previous file with comments | « content/public/browser/render_widget_host.h ('k') | content/renderer/render_frame_impl.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 // This is called right after creation with the WebLocalFrame for this 141 // This is called right after creation with the WebLocalFrame for this
142 // RenderFrame. It must be called before Initialize. 142 // RenderFrame. It must be called before Initialize.
143 void SetWebFrame(blink::WebLocalFrame* web_frame); 143 void SetWebFrame(blink::WebLocalFrame* web_frame);
144 144
145 // This method must be called after the frame has been added to the frame 145 // This method must be called after the frame has been added to the frame
146 // tree. It creates all objects that depend on the frame being at its proper 146 // tree. It creates all objects that depend on the frame being at its proper
147 // spot. 147 // spot.
148 void Initialize(); 148 void Initialize();
149 149
150 // Notification from RenderView.
151 virtual void OnStop();
152
153 // Notifications from RenderWidget. 150 // Notifications from RenderWidget.
154 void WasHidden(); 151 void WasHidden();
155 void WasShown(); 152 void WasShown();
156 153
157 // Start/Stop loading notifications. 154 // Start/Stop loading notifications.
158 // TODO(nasko): Those are page-level methods at this time and come from 155 // TODO(nasko): Those are page-level methods at this time and come from
159 // WebViewClient. We should move them to be WebFrameClient calls and put 156 // WebViewClient. We should move them to be WebFrameClient calls and put
160 // logic in the browser side to balance starts/stops. 157 // logic in the browser side to balance starts/stops.
161 // |to_different_document| will be true unless the load is a fragment 158 // |to_different_document| will be true unless the load is a fragment
162 // navigation, or triggered by history.pushState/replaceState. 159 // navigation, or triggered by history.pushState/replaceState.
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 // Gets the focused element. If no such element exists then the element will 487 // Gets the focused element. If no such element exists then the element will
491 // be NULL. 488 // be NULL.
492 blink::WebElement GetFocusedElement(); 489 blink::WebElement GetFocusedElement();
493 490
494 // IPC message handlers ------------------------------------------------------ 491 // IPC message handlers ------------------------------------------------------
495 // 492 //
496 // The documentation for these functions should be in 493 // The documentation for these functions should be in
497 // content/common/*_messages.h for the message that the function is handling. 494 // content/common/*_messages.h for the message that the function is handling.
498 void OnBeforeUnload(); 495 void OnBeforeUnload();
499 void OnSwapOut(int proxy_routing_id); 496 void OnSwapOut(int proxy_routing_id);
497 void OnStop();
500 void OnShowContextMenu(const gfx::Point& location); 498 void OnShowContextMenu(const gfx::Point& location);
501 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); 499 void OnContextMenuClosed(const CustomContextMenuContext& custom_context);
502 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, 500 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context,
503 unsigned action); 501 unsigned action);
504 void OnUndo(); 502 void OnUndo();
505 void OnRedo(); 503 void OnRedo();
506 void OnCut(); 504 void OnCut();
507 void OnCopy(); 505 void OnCopy();
508 void OnPaste(); 506 void OnPaste();
509 void OnPasteAndMatchStyle(); 507 void OnPasteAndMatchStyle();
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 #endif 731 #endif
734 732
735 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 733 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
736 734
737 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 735 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
738 }; 736 };
739 737
740 } // namespace content 738 } // namespace content
741 739
742 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 740 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_widget_host.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698