Commit af321180 authored by lazyboy@chromium.org's avatar lazyboy@chromium.org

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
parent 924426a5
...@@ -285,11 +285,11 @@ class CONTENT_EXPORT BrowserPlugin : ...@@ -285,11 +285,11 @@ class CONTENT_EXPORT BrowserPlugin :
// This indicates whether this BrowserPlugin has been attached to a // This indicates whether this BrowserPlugin has been attached to a
// WebContents. // WebContents.
bool attached_; 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. // 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 // If the |render_view_| is destroyed before the BrowserPlugin is destroyed
// then we will attempt to access a NULL pointer. // then we will attempt to access a NULL pointer.
int render_view_routing_id_; const int render_view_routing_id_;
blink::WebPluginContainer* container_; blink::WebPluginContainer* container_;
scoped_ptr<BrowserPluginBindings> bindings_; scoped_ptr<BrowserPluginBindings> bindings_;
bool paint_ack_received_; bool paint_ack_received_;
...@@ -311,7 +311,7 @@ class CONTENT_EXPORT BrowserPlugin : ...@@ -311,7 +311,7 @@ class CONTENT_EXPORT BrowserPlugin :
// embedder RenderView's visibility. // embedder RenderView's visibility.
bool visible_; bool visible_;
bool auto_navigate_; const bool auto_navigate_;
std::string html_string_; std::string html_string_;
WebCursor cursor_; WebCursor cursor_;
...@@ -323,7 +323,7 @@ class CONTENT_EXPORT BrowserPlugin : ...@@ -323,7 +323,7 @@ class CONTENT_EXPORT BrowserPlugin :
// BrowserPlugin outlives RenderViewImpl in Chrome Apps and so we need to // BrowserPlugin outlives RenderViewImpl in Chrome Apps and so we need to
// store the BrowserPlugin's BrowserPluginManager in a member variable to // store the BrowserPlugin's BrowserPluginManager in a member variable to
// avoid accessing the RenderViewImpl. // avoid accessing the RenderViewImpl.
scoped_refptr<BrowserPluginManager> browser_plugin_manager_; const scoped_refptr<BrowserPluginManager> browser_plugin_manager_;
// Used for HW compositing. // Used for HW compositing.
scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; scoped_refptr<ChildFrameCompositingHelper> compositing_helper_;
...@@ -332,7 +332,7 @@ class CONTENT_EXPORT BrowserPlugin : ...@@ -332,7 +332,7 @@ class CONTENT_EXPORT BrowserPlugin :
scoped_ptr<struct _NPP> npp_; scoped_ptr<struct _NPP> npp_;
// URL for the embedder frame. // URL for the embedder frame.
GURL embedder_frame_url_; const GURL embedder_frame_url_;
std::vector<EditCommand> edit_commands_; std::vector<EditCommand> edit_commands_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment