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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 virtual ~RenderViewHostImpl(); 126 virtual ~RenderViewHostImpl();
127 127
128 // RenderViewHost implementation. 128 // RenderViewHost implementation.
129 virtual void AllowBindings(int binding_flags) OVERRIDE; 129 virtual void AllowBindings(int binding_flags) OVERRIDE;
130 virtual void ClearFocusedNode() OVERRIDE; 130 virtual void ClearFocusedNode() OVERRIDE;
131 virtual void ClosePage() OVERRIDE; 131 virtual void ClosePage() OVERRIDE;
132 virtual void CopyImageAt(int x, int y) OVERRIDE; 132 virtual void CopyImageAt(int x, int y) OVERRIDE;
133 virtual void DesktopNotificationPermissionRequestDone( 133 virtual void DesktopNotificationPermissionRequestDone(
134 int callback_context) OVERRIDE; 134 int callback_context) OVERRIDE;
135 virtual void DesktopNotificationPostDisplay(int callback_context) OVERRIDE; 135 virtual void DesktopNotificationPostDisplay(int callback_context) OVERRIDE;
136 virtual void DesktopNotificationPostError(int notification_id, 136 virtual void DesktopNotificationPostError(
137 const string16& message) OVERRIDE; 137 int notification_id,
138 const base::string16& message) OVERRIDE;
138 virtual void DesktopNotificationPostClose(int notification_id, 139 virtual void DesktopNotificationPostClose(int notification_id,
139 bool by_user) OVERRIDE; 140 bool by_user) OVERRIDE;
140 virtual void DesktopNotificationPostClick(int notification_id) OVERRIDE; 141 virtual void DesktopNotificationPostClick(int notification_id) OVERRIDE;
141 virtual void DirectoryEnumerationFinished( 142 virtual void DirectoryEnumerationFinished(
142 int request_id, 143 int request_id,
143 const std::vector<base::FilePath>& files) OVERRIDE; 144 const std::vector<base::FilePath>& files) OVERRIDE;
144 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) OVERRIDE; 145 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) OVERRIDE;
145 virtual void DragSourceEndedAt( 146 virtual void DragSourceEndedAt(
146 int client_x, int client_y, int screen_x, int screen_y, 147 int client_x, int client_y, int screen_x, int screen_y,
147 blink::WebDragOperation operation) OVERRIDE; 148 blink::WebDragOperation operation) OVERRIDE;
(...skipping 17 matching lines...) Expand all
165 int key_modifiers) OVERRIDE; 166 int key_modifiers) OVERRIDE;
166 virtual void EnableAutoResize(const gfx::Size& min_size, 167 virtual void EnableAutoResize(const gfx::Size& min_size,
167 const gfx::Size& max_size) OVERRIDE; 168 const gfx::Size& max_size) OVERRIDE;
168 virtual void DisableAutoResize(const gfx::Size& new_size) OVERRIDE; 169 virtual void DisableAutoResize(const gfx::Size& new_size) OVERRIDE;
169 virtual void EnablePreferredSizeMode() OVERRIDE; 170 virtual void EnablePreferredSizeMode() OVERRIDE;
170 virtual void ExecuteCustomContextMenuCommand( 171 virtual void ExecuteCustomContextMenuCommand(
171 int action, const CustomContextMenuContext& context) OVERRIDE; 172 int action, const CustomContextMenuContext& context) OVERRIDE;
172 virtual void ExecuteMediaPlayerActionAtLocation( 173 virtual void ExecuteMediaPlayerActionAtLocation(
173 const gfx::Point& location, 174 const gfx::Point& location,
174 const blink::WebMediaPlayerAction& action) OVERRIDE; 175 const blink::WebMediaPlayerAction& action) OVERRIDE;
175 virtual void ExecuteJavascriptInWebFrame(const string16& frame_xpath, 176 virtual void ExecuteJavascriptInWebFrame(
176 const string16& jscript) OVERRIDE; 177 const base::string16& frame_xpath,
178 const base::string16& jscript) OVERRIDE;
177 virtual void ExecuteJavascriptInWebFrameCallbackResult( 179 virtual void ExecuteJavascriptInWebFrameCallbackResult(
178 const string16& frame_xpath, 180 const base::string16& frame_xpath,
179 const string16& jscript, 181 const base::string16& jscript,
180 const JavascriptResultCallback& callback) OVERRIDE; 182 const JavascriptResultCallback& callback) OVERRIDE;
181 virtual void ExecutePluginActionAtLocation( 183 virtual void ExecutePluginActionAtLocation(
182 const gfx::Point& location, 184 const gfx::Point& location,
183 const blink::WebPluginAction& action) OVERRIDE; 185 const blink::WebPluginAction& action) OVERRIDE;
184 virtual void ExitFullscreen() OVERRIDE; 186 virtual void ExitFullscreen() OVERRIDE;
185 virtual void Find(int request_id, const string16& search_text, 187 virtual void Find(int request_id, const base::string16& search_text,
186 const blink::WebFindOptions& options) OVERRIDE; 188 const blink::WebFindOptions& options) OVERRIDE;
187 virtual void StopFinding(StopFindAction action) OVERRIDE; 189 virtual void StopFinding(StopFindAction action) OVERRIDE;
188 virtual void FirePageBeforeUnload(bool for_cross_site_transition) OVERRIDE; 190 virtual void FirePageBeforeUnload(bool for_cross_site_transition) OVERRIDE;
189 virtual void FilesSelectedInChooser( 191 virtual void FilesSelectedInChooser(
190 const std::vector<ui::SelectedFileInfo>& files, 192 const std::vector<ui::SelectedFileInfo>& files,
191 FileChooserParams::Mode permissions) OVERRIDE; 193 FileChooserParams::Mode permissions) OVERRIDE;
192 virtual RenderViewHostDelegate* GetDelegate() const OVERRIDE; 194 virtual RenderViewHostDelegate* GetDelegate() const OVERRIDE;
193 virtual int GetEnabledBindings() const OVERRIDE; 195 virtual int GetEnabledBindings() const OVERRIDE;
194 virtual SiteInstance* GetSiteInstance() const OVERRIDE; 196 virtual SiteInstance* GetSiteInstance() const OVERRIDE;
195 virtual void InsertCSS(const string16& frame_xpath, 197 virtual void InsertCSS(const base::string16& frame_xpath,
196 const std::string& css) OVERRIDE; 198 const std::string& css) OVERRIDE;
197 virtual bool IsRenderViewLive() const OVERRIDE; 199 virtual bool IsRenderViewLive() const OVERRIDE;
198 virtual bool IsSubframe() const OVERRIDE; 200 virtual bool IsSubframe() const OVERRIDE;
199 virtual void NotifyContextMenuClosed( 201 virtual void NotifyContextMenuClosed(
200 const CustomContextMenuContext& context) OVERRIDE; 202 const CustomContextMenuContext& context) OVERRIDE;
201 virtual void NotifyMoveOrResizeStarted() OVERRIDE; 203 virtual void NotifyMoveOrResizeStarted() OVERRIDE;
202 virtual void ReloadFrame() OVERRIDE; 204 virtual void ReloadFrame() OVERRIDE;
203 virtual void SetAltErrorPageURL(const GURL& url) OVERRIDE; 205 virtual void SetAltErrorPageURL(const GURL& url) OVERRIDE;
204 virtual void SetWebUIProperty(const std::string& name, 206 virtual void SetWebUIProperty(const std::string& name,
205 const std::string& value) OVERRIDE; 207 const std::string& value) OVERRIDE;
(...skipping 20 matching lines...) Expand all
226 CHECK(d); // http://crbug.com/82827 228 CHECK(d); // http://crbug.com/82827
227 delegate_ = d; 229 delegate_ = d;
228 } 230 }
229 231
230 // Set up the RenderView child process. Virtual because it is overridden by 232 // Set up the RenderView child process. Virtual because it is overridden by
231 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used 233 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used
232 // as the name of the new top-level frame. 234 // as the name of the new top-level frame.
233 // The |opener_route_id| parameter indicates which RenderView created this 235 // The |opener_route_id| parameter indicates which RenderView created this
234 // (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the 236 // (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the
235 // RenderView is told to start issuing page IDs at |max_page_id| + 1. 237 // RenderView is told to start issuing page IDs at |max_page_id| + 1.
236 virtual bool CreateRenderView(const string16& frame_name, 238 virtual bool CreateRenderView(const base::string16& frame_name,
237 int opener_route_id, 239 int opener_route_id,
238 int32 max_page_id); 240 int32 max_page_id);
239 241
240 base::TerminationStatus render_view_termination_status() const { 242 base::TerminationStatus render_view_termination_status() const {
241 return render_view_termination_status_; 243 return render_view_termination_status_;
242 } 244 }
243 245
244 // Returns the content specific prefs for this RenderViewHost. 246 // Returns the content specific prefs for this RenderViewHost.
245 WebPreferences GetWebkitPrefs(const GURL& url); 247 WebPreferences GetWebkitPrefs(const GURL& url);
246 248
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 // Sets whether this RenderViewHost has an outstanding cross-site request, 343 // Sets whether this RenderViewHost has an outstanding cross-site request,
342 // for which another renderer will need to run an onunload event handler. 344 // for which another renderer will need to run an onunload event handler.
343 // This is called before the first navigation event for this RenderViewHost, 345 // This is called before the first navigation event for this RenderViewHost,
344 // and cleared when we hear the response or commit. 346 // and cleared when we hear the response or commit.
345 void SetHasPendingCrossSiteRequest(bool has_pending_request); 347 void SetHasPendingCrossSiteRequest(bool has_pending_request);
346 348
347 // Notifies the RenderView that the JavaScript message that was shown was 349 // Notifies the RenderView that the JavaScript message that was shown was
348 // closed by the user. 350 // closed by the user.
349 void JavaScriptDialogClosed(IPC::Message* reply_msg, 351 void JavaScriptDialogClosed(IPC::Message* reply_msg,
350 bool success, 352 bool success,
351 const string16& user_input); 353 const base::string16& user_input);
352 354
353 // Tells the renderer view to focus the first (last if reverse is true) node. 355 // Tells the renderer view to focus the first (last if reverse is true) node.
354 void SetInitialFocus(bool reverse); 356 void SetInitialFocus(bool reverse);
355 357
356 // Get html data by serializing all frames of current page with lists 358 // Get html data by serializing all frames of current page with lists
357 // which contain all resource links that have local copy. 359 // which contain all resource links that have local copy.
358 // The parameter links contain original URLs of all saved links. 360 // The parameter links contain original URLs of all saved links.
359 // The parameter local_paths contain corresponding local file paths of 361 // The parameter local_paths contain corresponding local file paths of
360 // all saved links, which matched with vector:links one by one. 362 // all saved links, which matched with vector:links one by one.
361 // The parameter local_directory_name is relative path of directory which 363 // The parameter local_directory_name is relative path of directory which
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 void OnRenderViewReady(); 529 void OnRenderViewReady();
528 void OnRenderProcessGone(int status, int error_code); 530 void OnRenderProcessGone(int status, int error_code);
529 void OnDidRedirectProvisionalLoad(int32 page_id, 531 void OnDidRedirectProvisionalLoad(int32 page_id,
530 const GURL& source_url, 532 const GURL& source_url,
531 const GURL& target_url); 533 const GURL& target_url);
532 void OnDidFailProvisionalLoadWithError( 534 void OnDidFailProvisionalLoadWithError(
533 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params); 535 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params);
534 void OnNavigate(const IPC::Message& msg); 536 void OnNavigate(const IPC::Message& msg);
535 void OnUpdateState(int32 page_id, const PageState& state); 537 void OnUpdateState(int32 page_id, const PageState& state);
536 void OnUpdateTitle(int32 page_id, 538 void OnUpdateTitle(int32 page_id,
537 const string16& title, 539 const base::string16& title,
538 blink::WebTextDirection title_direction); 540 blink::WebTextDirection title_direction);
539 void OnUpdateEncoding(const std::string& encoding); 541 void OnUpdateEncoding(const std::string& encoding);
540 void OnUpdateTargetURL(int32 page_id, const GURL& url); 542 void OnUpdateTargetURL(int32 page_id, const GURL& url);
541 void OnClose(); 543 void OnClose();
542 void OnRequestMove(const gfx::Rect& pos); 544 void OnRequestMove(const gfx::Rect& pos);
543 void OnDidStartLoading(); 545 void OnDidStartLoading();
544 void OnDidStopLoading(); 546 void OnDidStopLoading();
545 void OnDidChangeLoadProgress(double load_progress); 547 void OnDidChangeLoadProgress(double load_progress);
546 void OnDidDisownOpener(); 548 void OnDidDisownOpener();
547 void OnDocumentAvailableInMainFrame(); 549 void OnDocumentAvailableInMainFrame();
548 void OnDocumentOnLoadCompletedInMainFrame(int32 page_id); 550 void OnDocumentOnLoadCompletedInMainFrame(int32 page_id);
549 void OnContextMenu(const ContextMenuParams& params); 551 void OnContextMenu(const ContextMenuParams& params);
550 void OnToggleFullscreen(bool enter_fullscreen); 552 void OnToggleFullscreen(bool enter_fullscreen);
551 void OnOpenURL(const ViewHostMsg_OpenURL_Params& params); 553 void OnOpenURL(const ViewHostMsg_OpenURL_Params& params);
552 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); 554 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size);
553 void OnDidChangeScrollOffset(); 555 void OnDidChangeScrollOffset();
554 void OnDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar, 556 void OnDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar,
555 bool has_vertical_scrollbar); 557 bool has_vertical_scrollbar);
556 void OnDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left, 558 void OnDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left,
557 bool is_pinned_to_right); 559 bool is_pinned_to_right);
558 void OnDidChangeNumWheelEvents(int count); 560 void OnDidChangeNumWheelEvents(int count);
559 void OnSelectionChanged(const string16& text, 561 void OnSelectionChanged(const base::string16& text,
560 size_t offset, 562 size_t offset,
561 const gfx::Range& range); 563 const gfx::Range& range);
562 void OnSelectionBoundsChanged( 564 void OnSelectionBoundsChanged(
563 const ViewHostMsg_SelectionBounds_Params& params); 565 const ViewHostMsg_SelectionBounds_Params& params);
564 void OnPasteFromSelectionClipboard(); 566 void OnPasteFromSelectionClipboard();
565 void OnRouteCloseEvent(); 567 void OnRouteCloseEvent();
566 void OnRouteMessageEvent(const ViewMsg_PostMessage_Params& params); 568 void OnRouteMessageEvent(const ViewMsg_PostMessage_Params& params);
567 void OnRunJavaScriptMessage(const string16& message, 569 void OnRunJavaScriptMessage(const base::string16& message,
568 const string16& default_prompt, 570 const base::string16& default_prompt,
569 const GURL& frame_url, 571 const GURL& frame_url,
570 JavaScriptMessageType type, 572 JavaScriptMessageType type,
571 IPC::Message* reply_msg); 573 IPC::Message* reply_msg);
572 void OnRunBeforeUnloadConfirm(const GURL& frame_url, 574 void OnRunBeforeUnloadConfirm(const GURL& frame_url,
573 const string16& message, 575 const base::string16& message,
574 bool is_reload, 576 bool is_reload,
575 IPC::Message* reply_msg); 577 IPC::Message* reply_msg);
576 void OnStartDragging(const DropData& drop_data, 578 void OnStartDragging(const DropData& drop_data,
577 blink::WebDragOperationsMask operations_allowed, 579 blink::WebDragOperationsMask operations_allowed,
578 const SkBitmap& bitmap, 580 const SkBitmap& bitmap,
579 const gfx::Vector2d& bitmap_offset_in_dip, 581 const gfx::Vector2d& bitmap_offset_in_dip,
580 const DragEventSourceInfo& event_info); 582 const DragEventSourceInfo& event_info);
581 void OnUpdateDragCursor(blink::WebDragOperation drag_operation); 583 void OnUpdateDragCursor(blink::WebDragOperation drag_operation);
582 void OnTargetDropACK(); 584 void OnTargetDropACK();
583 void OnTakeFocus(bool reverse); 585 void OnTakeFocus(bool reverse);
584 void OnFocusedNodeChanged(bool is_editable_node); 586 void OnFocusedNodeChanged(bool is_editable_node);
585 void OnAddMessageToConsole(int32 level, 587 void OnAddMessageToConsole(int32 level,
586 const string16& message, 588 const base::string16& message,
587 int32 line_no, 589 int32 line_no,
588 const string16& source_id); 590 const base::string16& source_id);
589 void OnUpdateInspectorSetting(const std::string& key, 591 void OnUpdateInspectorSetting(const std::string& key,
590 const std::string& value); 592 const std::string& value);
591 void OnShouldCloseACK( 593 void OnShouldCloseACK(
592 bool proceed, 594 bool proceed,
593 const base::TimeTicks& renderer_before_unload_start_time, 595 const base::TimeTicks& renderer_before_unload_start_time,
594 const base::TimeTicks& renderer_before_unload_end_time); 596 const base::TimeTicks& renderer_before_unload_end_time);
595 void OnClosePageACK(); 597 void OnClosePageACK();
596 void OnSwapOutACK(); 598 void OnSwapOutACK();
597 void OnAccessibilityEvents( 599 void OnAccessibilityEvents(
598 const std::vector<AccessibilityHostMsg_EventParams>& params); 600 const std::vector<AccessibilityHostMsg_EventParams>& params);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 745 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
744 }; 746 };
745 747
746 #if defined(COMPILER_MSVC) 748 #if defined(COMPILER_MSVC)
747 #pragma warning(pop) 749 #pragma warning(pop)
748 #endif 750 #endif
749 751
750 } // namespace content 752 } // namespace content
751 753
752 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 754 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_delegate.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698