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

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

Issue 6794035: Move dispatching and sending of the last extension specific messages out of TabContents and Rende... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 20 matching lines...) Expand all
31 class FilePath; 31 class FilePath;
32 class GURL; 32 class GURL;
33 class ListValue; 33 class ListValue;
34 class RenderViewHostDelegate; 34 class RenderViewHostDelegate;
35 class SessionStorageNamespace; 35 class SessionStorageNamespace;
36 class SiteInstance; 36 class SiteInstance;
37 class SkBitmap; 37 class SkBitmap;
38 class ViewMsg_Navigate; 38 class ViewMsg_Navigate;
39 struct ContentSettings; 39 struct ContentSettings;
40 struct ContextMenuParams; 40 struct ContextMenuParams;
41 struct ExtensionHostMsg_DomMessage_Params;
42 struct MediaPlayerAction; 41 struct MediaPlayerAction;
43 struct ViewHostMsg_AccessibilityNotification_Params; 42 struct ViewHostMsg_AccessibilityNotification_Params;
44 struct ViewHostMsg_CreateWindow_Params; 43 struct ViewHostMsg_CreateWindow_Params;
45 struct ViewHostMsg_ShowPopup_Params; 44 struct ViewHostMsg_ShowPopup_Params;
46 struct ViewMsg_Navigate_Params; 45 struct ViewMsg_Navigate_Params;
47 struct WebApplicationInfo;
48 struct WebDropData; 46 struct WebDropData;
49 struct WebPreferences; 47 struct WebPreferences;
50 struct UserMetricsAction; 48 struct UserMetricsAction;
51 49
52 namespace gfx { 50 namespace gfx {
53 class Point; 51 class Point;
54 } // namespace gfx 52 } // namespace gfx
55 53
56 namespace webkit_glue { 54 namespace webkit_glue {
57 struct CustomContextMenuContext; 55 struct CustomContextMenuContext;
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 void ToggleSpellCheck(); 280 void ToggleSpellCheck();
283 void Delete(); 281 void Delete();
284 void SelectAll(); 282 void SelectAll();
285 void ToggleSpellPanel(bool is_currently_visible); 283 void ToggleSpellPanel(bool is_currently_visible);
286 284
287 // Downloads an image notifying the favicon delegate appropriately. The 285 // Downloads an image notifying the favicon delegate appropriately. The
288 // returned integer uniquely identifies the download for the lifetime of the 286 // returned integer uniquely identifies the download for the lifetime of the
289 // browser. 287 // browser.
290 int DownloadFavicon(const GURL& url, int image_size); 288 int DownloadFavicon(const GURL& url, int image_size);
291 289
292 // Requests application info for the specified page. This is an asynchronous
293 // request. The delegate is notified by way of OnDidGetApplicationInfo when
294 // the data is available.
295 void GetApplicationInfo(int32 page_id);
296
297 // Captures a snapshot of the page. 290 // Captures a snapshot of the page.
298 void CaptureSnapshot(); 291 void CaptureSnapshot();
299 292
300 // Notifies the RenderView that the JavaScript message that was shown was 293 // Notifies the RenderView that the JavaScript message that was shown was
301 // closed by the user. 294 // closed by the user.
302 void JavaScriptMessageBoxClosed(IPC::Message* reply_msg, 295 void JavaScriptMessageBoxClosed(IPC::Message* reply_msg,
303 bool success, 296 bool success,
304 const std::wstring& prompt); 297 const std::wstring& prompt);
305 298
306 // Send an action to the media player element located at |location|. 299 // Send an action to the media player element located at |location|.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 void CreateNewWindow(int route_id, 427 void CreateNewWindow(int route_id,
435 const ViewHostMsg_CreateWindow_Params& params); 428 const ViewHostMsg_CreateWindow_Params& params);
436 429
437 // Creates a new RenderWidget with the given route id. |popup_type| indicates 430 // Creates a new RenderWidget with the given route id. |popup_type| indicates
438 // if this widget is a popup and what kind of popup it is (select, autofill). 431 // if this widget is a popup and what kind of popup it is (select, autofill).
439 void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); 432 void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type);
440 433
441 // Creates a full screen RenderWidget. 434 // Creates a full screen RenderWidget.
442 void CreateNewFullscreenWidget(int route_id); 435 void CreateNewFullscreenWidget(int route_id);
443 436
444 // Sends the response to an extension api call.
445 void SendExtensionResponse(int request_id, bool success,
446 const std::string& response,
447 const std::string& error);
448
449 // Sends a response to an extension api call that it was blocked for lack of
450 // permission.
451 void BlockExtensionRequest(int request_id);
452
453 // Tells the renderer which browser window it is being attached to. 437 // Tells the renderer which browser window it is being attached to.
454 void UpdateBrowserWindowId(int window_id); 438 void UpdateBrowserWindowId(int window_id);
455 439
456 // Tells the render view that a custom context action has been selected. 440 // Tells the render view that a custom context action has been selected.
457 void PerformCustomContextMenuAction( 441 void PerformCustomContextMenuAction(
458 const webkit_glue::CustomContextMenuContext& custom_context, 442 const webkit_glue::CustomContextMenuContext& custom_context,
459 unsigned action); 443 unsigned action);
460 444
461 // Informs renderer of updated content settings. 445 // Informs renderer of updated content settings.
462 void SendContentSettings(const GURL& url, 446 void SendContentSettings(const GURL& url,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 void OnMsgUpdateEncoding(const std::string& encoding); 527 void OnMsgUpdateEncoding(const std::string& encoding);
544 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url); 528 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url);
545 void OnMsgScreenshot(const SkBitmap& bitmap); 529 void OnMsgScreenshot(const SkBitmap& bitmap);
546 void OnMsgClose(); 530 void OnMsgClose();
547 void OnMsgRequestMove(const gfx::Rect& pos); 531 void OnMsgRequestMove(const gfx::Rect& pos);
548 void OnMsgDidStartLoading(); 532 void OnMsgDidStartLoading();
549 void OnMsgDidStopLoading(); 533 void OnMsgDidStopLoading();
550 void OnMsgDidChangeLoadProgress(double load_progress); 534 void OnMsgDidChangeLoadProgress(double load_progress);
551 void OnMsgDocumentAvailableInMainFrame(); 535 void OnMsgDocumentAvailableInMainFrame();
552 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id); 536 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id);
553 void OnExecuteCodeFinished(int request_id, bool success);
554 void OnMsgUpdateFaviconURL(int32 page_id, const GURL& icon_url); 537 void OnMsgUpdateFaviconURL(int32 page_id, const GURL& icon_url);
555 void OnMsgDidDownloadFavicon(int id, 538 void OnMsgDidDownloadFavicon(int id,
556 const GURL& image_url, 539 const GURL& image_url,
557 bool errored, 540 bool errored,
558 const SkBitmap& image_data); 541 const SkBitmap& image_data);
559 void OnMsgContextMenu(const ContextMenuParams& params); 542 void OnMsgContextMenu(const ContextMenuParams& params);
560 void OnMsgOpenURL(const GURL& url, const GURL& referrer, 543 void OnMsgOpenURL(const GURL& url, const GURL& referrer,
561 WindowOpenDisposition disposition); 544 WindowOpenDisposition disposition);
562 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); 545 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size);
563 void OnMsgDomOperationResponse(const std::string& json_string, 546 void OnMsgDomOperationResponse(const std::string& json_string,
(...skipping 22 matching lines...) Expand all
586 const gfx::Point& image_offset); 569 const gfx::Point& image_offset);
587 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation); 570 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation);
588 void OnTakeFocus(bool reverse); 571 void OnTakeFocus(bool reverse);
589 void OnAddMessageToConsole(const std::wstring& message, 572 void OnAddMessageToConsole(const std::wstring& message,
590 int32 line_no, 573 int32 line_no,
591 const std::wstring& source_id); 574 const std::wstring& source_id);
592 void OnUpdateInspectorSetting(const std::string& key, 575 void OnUpdateInspectorSetting(const std::string& key,
593 const std::string& value); 576 const std::string& value);
594 void OnMsgShouldCloseACK(bool proceed); 577 void OnMsgShouldCloseACK(bool proceed);
595 578
596 void OnExtensionRequest(const ExtensionHostMsg_DomMessage_Params& params);
597 void OnAccessibilityNotifications( 579 void OnAccessibilityNotifications(
598 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params); 580 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params);
599 void OnCSSInserted(); 581 void OnCSSInserted();
600 void OnContentBlocked(ContentSettingsType type, 582 void OnContentBlocked(ContentSettingsType type,
601 const std::string& resource_identifier); 583 const std::string& resource_identifier);
602 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); 584 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy);
603 void OnWebDatabaseAccessed(const GURL& url, 585 void OnWebDatabaseAccessed(const GURL& url,
604 const string16& name, 586 const string16& name,
605 const string16& display_name, 587 const string16& display_name,
606 unsigned long estimated_size, 588 unsigned long estimated_size,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 // The termination status of the last render view that terminated. 679 // The termination status of the last render view that terminated.
698 base::TerminationStatus render_view_termination_status_; 680 base::TerminationStatus render_view_termination_status_;
699 681
700 // The enabled/disabled states of various commands. 682 // The enabled/disabled states of various commands.
701 std::map<RenderViewCommand, CommandState> command_states_; 683 std::map<RenderViewCommand, CommandState> command_states_;
702 684
703 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 685 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
704 }; 686 };
705 687
706 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 688 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698