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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 157713002: Switch DomAutomationController to be a RenderFrameObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nasko@ CR feedback Created 6 years, 10 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
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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 bool is_main_frame, 124 bool is_main_frame,
125 int error_code, 125 int error_code,
126 const base::string16& error_description); 126 const base::string16& error_description);
127 void OnDidRedirectProvisionalLoad(int32 page_id, 127 void OnDidRedirectProvisionalLoad(int32 page_id,
128 const GURL& source_url, 128 const GURL& source_url,
129 const GURL& target_url); 129 const GURL& target_url);
130 void OnNavigate(const IPC::Message& msg); 130 void OnNavigate(const IPC::Message& msg);
131 void OnDidStopLoading(); 131 void OnDidStopLoading();
132 void OnSwapOutACK(); 132 void OnSwapOutACK();
133 void OnContextMenu(const ContextMenuParams& params); 133 void OnContextMenu(const ContextMenuParams& params);
134 void OnDomOperationResponse(const std::string& json_string,
135 int automation_id);
134 136
135 // Returns whether the given URL is allowed to commit in the current process. 137 // Returns whether the given URL is allowed to commit in the current process.
136 // This is a more conservative check than RenderProcessHost::FilterURL, since 138 // This is a more conservative check than RenderProcessHost::FilterURL, since
137 // it will be used to kill processes that commit unauthorized URLs. 139 // it will be used to kill processes that commit unauthorized URLs.
138 bool CanCommitURL(const GURL& url); 140 bool CanCommitURL(const GURL& url);
139 141
140 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a 142 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a
141 // refcount that calls Shutdown when it reaches zero. This allows each 143 // refcount that calls Shutdown when it reaches zero. This allows each
142 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring 144 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring
143 // we have a RenderViewHost for each RenderFrameHost. 145 // we have a RenderViewHost for each RenderFrameHost.
(...skipping 25 matching lines...) Expand all
169 171
170 int routing_id_; 172 int routing_id_;
171 bool is_swapped_out_; 173 bool is_swapped_out_;
172 174
173 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 175 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
174 }; 176 };
175 177
176 } // namespace content 178 } // namespace content
177 179
178 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 180 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698