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

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

Issue 180113003: Prepare for per frame did{Start,Stop}Loading calls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/renderer/npapi/webplugin_impl.cc ('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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // This is called right after creation with the WebFrame for this RenderFrame. 92 // This is called right after creation with the WebFrame for this RenderFrame.
93 void SetWebFrame(blink::WebFrame* web_frame); 93 void SetWebFrame(blink::WebFrame* web_frame);
94 94
95 // Notification from RenderView. 95 // Notification from RenderView.
96 virtual void OnStop(); 96 virtual void OnStop();
97 97
98 // Start/Stop loading notifications. 98 // Start/Stop loading notifications.
99 // TODO(nasko): Those are page-level methods at this time and come from 99 // TODO(nasko): Those are page-level methods at this time and come from
100 // WebViewClient. We should move them to be WebFrameClient calls and put 100 // WebViewClient. We should move them to be WebFrameClient calls and put
101 // logic in the browser side to balance starts/stops. 101 // logic in the browser side to balance starts/stops.
102 void didStartLoading(); 102 virtual void didStartLoading(bool to_different_document);
103 void didStopLoading(); 103 virtual void didStopLoading();
104 virtual void didChangeLoadProgress(double load_progress);
104 105
105 #if defined(ENABLE_PLUGINS) 106 #if defined(ENABLE_PLUGINS)
106 // Notification that a PPAPI plugin has been created. 107 // Notification that a PPAPI plugin has been created.
107 void PepperPluginCreated(RendererPpapiHost* host); 108 void PepperPluginCreated(RendererPpapiHost* host);
108 109
109 // Notifies that |instance| has changed the cursor. 110 // Notifies that |instance| has changed the cursor.
110 // This will update the cursor appearance if it is currently over the plugin 111 // This will update the cursor appearance if it is currently over the plugin
111 // instance. 112 // instance.
112 void PepperDidChangeCursor(PepperPluginInstanceImpl* instance, 113 void PepperDidChangeCursor(PepperPluginInstanceImpl* instance,
113 const blink::WebCursorInfo& cursor); 114 const blink::WebCursorInfo& cursor);
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 const base::string16& selection_text, 395 const base::string16& selection_text,
395 size_t selection_text_offset, 396 size_t selection_text_offset,
396 const gfx::Range& selection_range, 397 const gfx::Range& selection_range,
397 const ContextMenuParams& params); 398 const ContextMenuParams& params);
398 399
399 // Stores the WebFrame we are associated with. 400 // Stores the WebFrame we are associated with.
400 blink::WebFrame* frame_; 401 blink::WebFrame* frame_;
401 402
402 base::WeakPtr<RenderViewImpl> render_view_; 403 base::WeakPtr<RenderViewImpl> render_view_;
403 int routing_id_; 404 int routing_id_;
405 bool is_loading_;
404 bool is_swapped_out_; 406 bool is_swapped_out_;
405 bool is_detaching_; 407 bool is_detaching_;
406 408
407 #if defined(ENABLE_PLUGINS) 409 #if defined(ENABLE_PLUGINS)
408 // Current text input composition text. Empty if no composition is in 410 // Current text input composition text. Empty if no composition is in
409 // progress. 411 // progress.
410 base::string16 pepper_composition_text_; 412 base::string16 pepper_composition_text_;
411 #endif 413 #endif
412 414
413 RendererWebCookieJarImpl cookie_jar_; 415 RendererWebCookieJarImpl cookie_jar_;
(...skipping 18 matching lines...) Expand all
432 // always respond properly to the request, so we don't have to worry so 434 // always respond properly to the request, so we don't have to worry so
433 // much about leaks. 435 // much about leaks.
434 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_; 436 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_;
435 437
436 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 438 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
437 }; 439 };
438 440
439 } // namespace content 441 } // namespace content
440 442
441 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 443 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/npapi/webplugin_impl.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698