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

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

Issue 292113008: Plumbing for browser process to access text surrounding selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@adb_install_humans
Patch Set: Created 6 years, 7 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
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 <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 void OnRunBeforeUnloadConfirm(const GURL& frame_url, 216 void OnRunBeforeUnloadConfirm(const GURL& frame_url,
217 const base::string16& message, 217 const base::string16& message,
218 bool is_reload, 218 bool is_reload,
219 IPC::Message* reply_msg); 219 IPC::Message* reply_msg);
220 void OnRequestDesktopNotificationPermission(const GURL& origin, 220 void OnRequestDesktopNotificationPermission(const GURL& origin,
221 int callback_id); 221 int callback_id);
222 void OnShowDesktopNotification( 222 void OnShowDesktopNotification(
223 int notification_id, 223 int notification_id,
224 const ShowDesktopNotificationHostMsgParams& params); 224 const ShowDesktopNotificationHostMsgParams& params);
225 void OnCancelDesktopNotification(int notification_id); 225 void OnCancelDesktopNotification(int notification_id);
226 void OnTextSurroundingSelectionResponse(const base::string16& content,
227 unsigned start_offset,
228 unsigned end_offset);
226 void OnDidAccessInitialDocument(); 229 void OnDidAccessInitialDocument();
227 void OnDidDisownOpener(); 230 void OnDidDisownOpener();
228 void OnUpdateTitle(int32 page_id, 231 void OnUpdateTitle(int32 page_id,
229 const base::string16& title, 232 const base::string16& title,
230 blink::WebTextDirection title_direction); 233 blink::WebTextDirection title_direction);
231 void OnUpdateEncoding(const std::string& encoding); 234 void OnUpdateEncoding(const std::string& encoding);
232 235
233 // Returns whether the given URL is allowed to commit in the current process. 236 // Returns whether the given URL is allowed to commit in the current process.
234 // This is a more conservative check than RenderProcessHost::FilterURL, since 237 // This is a more conservative check than RenderProcessHost::FilterURL, since
235 // it will be used to kill processes that commit unauthorized URLs. 238 // it will be used to kill processes that commit unauthorized URLs.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 base::TimeTicks send_before_unload_start_time_; 290 base::TimeTicks send_before_unload_start_time_;
288 291
289 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 292 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
290 293
291 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 294 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
292 }; 295 };
293 296
294 } // namespace content 297 } // namespace content
295 298
296 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 299 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698