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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.h

Issue 5981007: fix about:memory and memory histograms to show extensions more clearly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 9 years, 11 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/browser/memory_details.cc ('k') | chrome/common/child_process_info.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // for the onbeforeunload handler, so this function might buffer the message 145 // for the onbeforeunload handler, so this function might buffer the message
146 // rather than sending it. 146 // rather than sending it.
147 void Navigate(const ViewMsg_Navigate_Params& message); 147 void Navigate(const ViewMsg_Navigate_Params& message);
148 148
149 // Load the specified URL, this is a shortcut for Navigate(). 149 // Load the specified URL, this is a shortcut for Navigate().
150 void NavigateToURL(const GURL& url); 150 void NavigateToURL(const GURL& url);
151 151
152 // Returns whether navigation messages are currently suspended for this 152 // Returns whether navigation messages are currently suspended for this
153 // RenderViewHost. Only true during a cross-site navigation, while waiting 153 // RenderViewHost. Only true during a cross-site navigation, while waiting
154 // for the onbeforeunload handler. 154 // for the onbeforeunload handler.
155 bool are_navigations_suspended() { return navigations_suspended_; } 155 bool are_navigations_suspended() const { return navigations_suspended_; }
156 156
157 // Suspends (or unsuspends) any navigation messages from being sent from this 157 // Suspends (or unsuspends) any navigation messages from being sent from this
158 // RenderViewHost. This is called when a pending RenderViewHost is created 158 // RenderViewHost. This is called when a pending RenderViewHost is created
159 // for a cross-site navigation, because we must suspend any navigations until 159 // for a cross-site navigation, because we must suspend any navigations until
160 // we hear back from the old renderer's onbeforeunload handler. Note that it 160 // we hear back from the old renderer's onbeforeunload handler. Note that it
161 // is important that only one navigation event happen after calling this 161 // is important that only one navigation event happen after calling this
162 // method with |suspend| equal to true. If |suspend| is false and there is 162 // method with |suspend| equal to true. If |suspend| is false and there is
163 // a suspended_nav_message_, this will send the message. This function 163 // a suspended_nav_message_, this will send the message. This function
164 // should only be called to toggle the state; callers should check 164 // should only be called to toggle the state; callers should check
165 // are_navigations_suspended() first. 165 // are_navigations_suspended() first.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 // Notifies the renderer that we're done with the drag and drop operation. 342 // Notifies the renderer that we're done with the drag and drop operation.
343 // This allows the renderer to reset some state. 343 // This allows the renderer to reset some state.
344 void DragSourceSystemDragEnded(); 344 void DragSourceSystemDragEnded();
345 345
346 // Tell the render view to enable a set of javascript bindings. The argument 346 // Tell the render view to enable a set of javascript bindings. The argument
347 // should be a combination of values from BindingsPolicy. 347 // should be a combination of values from BindingsPolicy.
348 void AllowBindings(int binding_flags); 348 void AllowBindings(int binding_flags);
349 349
350 // Returns a bitwise OR of bindings types that have been enabled for this 350 // Returns a bitwise OR of bindings types that have been enabled for this
351 // RenderView. See BindingsPolicy for details. 351 // RenderView. See BindingsPolicy for details.
352 int enabled_bindings() { return enabled_bindings_; } 352 int enabled_bindings() const { return enabled_bindings_; }
353 353
354 // See variable comment. 354 // See variable comment.
355 bool is_extension_process() { return is_extension_process_; } 355 bool is_extension_process() const { return is_extension_process_; }
356 void set_is_extension_process(bool is_extension_process) { 356 void set_is_extension_process(bool is_extension_process) {
357 is_extension_process_ = is_extension_process; 357 is_extension_process_ = is_extension_process;
358 } 358 }
359 359
360 // Sets a property with the given name and value on the DOM UI binding object. 360 // Sets a property with the given name and value on the DOM UI binding object.
361 // Must call AllowDOMUIBindings() on this renderer first. 361 // Must call AllowDOMUIBindings() on this renderer first.
362 void SetDOMUIProperty(const std::string& name, const std::string& value); 362 void SetDOMUIProperty(const std::string& name, const std::string& value);
363 363
364 // Tells the renderer view to focus the first (last if reverse is true) node. 364 // Tells the renderer view to focus the first (last if reverse is true) node.
365 void SetInitialFocus(bool reverse); 365 void SetInitialFocus(bool reverse);
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 // The most recently received accessibility tree - for unit testing only. 830 // The most recently received accessibility tree - for unit testing only.
831 webkit_glue::WebAccessibility accessibility_tree_; 831 webkit_glue::WebAccessibility accessibility_tree_;
832 832
833 // The termination status of the last render view that terminated. 833 // The termination status of the last render view that terminated.
834 base::TerminationStatus render_view_termination_status_; 834 base::TerminationStatus render_view_termination_status_;
835 835
836 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 836 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
837 }; 837 };
838 838
839 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 839 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/memory_details.cc ('k') | chrome/common/child_process_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698