diff options
author | lazyboy@chromium.org <lazyboy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-20 17:49:37 +0000 |
---|---|---|
committer | lazyboy@chromium.org <lazyboy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-20 17:49:37 +0000 |
commit | af321180684ad57953d5fda5ca09a806acd96a3b (patch) | |
tree | aea49b34a95c54a19128941b1927015e0cfea26e /content/renderer/browser_plugin/browser_plugin.h | |
parent | 924426a509a5b9378ece2475b8864b4d309ce1e3 (diff) | |
download | chromium_src-af321180684ad57953d5fda5ca09a806acd96a3b.zip chromium_src-af321180684ad57953d5fda5ca09a806acd96a3b.tar.gz chromium_src-af321180684ad57953d5fda5ca09a806acd96a3b.tar.bz2 |
Const correctness for some immutable members in BrowserPlugin.
BUG=None
Test=Internal cleanup.
Review URL: https://codereview.chromium.org/288393005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271700 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/browser_plugin/browser_plugin.h')
-rw-r--r-- | content/renderer/browser_plugin/browser_plugin.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/content/renderer/browser_plugin/browser_plugin.h b/content/renderer/browser_plugin/browser_plugin.h index d176154..e7fed85 100644 --- a/content/renderer/browser_plugin/browser_plugin.h +++ b/content/renderer/browser_plugin/browser_plugin.h @@ -285,11 +285,11 @@ class CONTENT_EXPORT BrowserPlugin : // This indicates whether this BrowserPlugin has been attached to a // WebContents. bool attached_; - base::WeakPtr<RenderViewImpl> render_view_; + const base::WeakPtr<RenderViewImpl> render_view_; // We cache the |render_view_|'s routing ID because we need it on destruction. // If the |render_view_| is destroyed before the BrowserPlugin is destroyed // then we will attempt to access a NULL pointer. - int render_view_routing_id_; + const int render_view_routing_id_; blink::WebPluginContainer* container_; scoped_ptr<BrowserPluginBindings> bindings_; bool paint_ack_received_; @@ -311,7 +311,7 @@ class CONTENT_EXPORT BrowserPlugin : // embedder RenderView's visibility. bool visible_; - bool auto_navigate_; + const bool auto_navigate_; std::string html_string_; WebCursor cursor_; @@ -323,7 +323,7 @@ class CONTENT_EXPORT BrowserPlugin : // BrowserPlugin outlives RenderViewImpl in Chrome Apps and so we need to // store the BrowserPlugin's BrowserPluginManager in a member variable to // avoid accessing the RenderViewImpl. - scoped_refptr<BrowserPluginManager> browser_plugin_manager_; + const scoped_refptr<BrowserPluginManager> browser_plugin_manager_; // Used for HW compositing. scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; @@ -332,7 +332,7 @@ class CONTENT_EXPORT BrowserPlugin : scoped_ptr<struct _NPP> npp_; // URL for the embedder frame. - GURL embedder_frame_url_; + const GURL embedder_frame_url_; std::vector<EditCommand> edit_commands_; |