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

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

Issue 8760024: Cross-process postMessage (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: New patch, still not quite done Created 9 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
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 24 matching lines...) Expand all
35 class PowerSaveBlocker; 35 class PowerSaveBlocker;
36 class RenderViewHostDelegate; 36 class RenderViewHostDelegate;
37 class SessionStorageNamespace; 37 class SessionStorageNamespace;
38 class SiteInstance; 38 class SiteInstance;
39 class SkBitmap; 39 class SkBitmap;
40 class ViewMsg_Navigate; 40 class ViewMsg_Navigate;
41 struct ContextMenuParams; 41 struct ContextMenuParams;
42 struct MediaPlayerAction; 42 struct MediaPlayerAction;
43 struct ViewHostMsg_AccessibilityNotification_Params; 43 struct ViewHostMsg_AccessibilityNotification_Params;
44 struct ViewHostMsg_CreateWindow_Params; 44 struct ViewHostMsg_CreateWindow_Params;
45 struct ViewHostMsg_OpenURL_Params;
45 struct ViewHostMsg_ShowPopup_Params; 46 struct ViewHostMsg_ShowPopup_Params;
46 struct ViewMsg_Navigate_Params; 47 struct ViewMsg_Navigate_Params;
48 struct ViewMsg_PostMessage_Params;
47 struct ViewMsg_StopFinding_Params; 49 struct ViewMsg_StopFinding_Params;
50 struct ViewMsg_SwapOut_Params;
48 struct WebDropData; 51 struct WebDropData;
49 struct WebPreferences; 52 struct WebPreferences;
50 53
51 namespace base { 54 namespace base {
52 class ListValue; 55 class ListValue;
53 } 56 }
54 57
55 namespace content { 58 namespace content {
56 struct FileChooserParams; 59 struct FileChooserParams;
57 struct Referrer; 60 struct Referrer;
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url); 530 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url);
528 void OnMsgClose(); 531 void OnMsgClose();
529 void OnMsgRequestMove(const gfx::Rect& pos); 532 void OnMsgRequestMove(const gfx::Rect& pos);
530 void OnMsgDidStartLoading(); 533 void OnMsgDidStartLoading();
531 void OnMsgDidStopLoading(); 534 void OnMsgDidStopLoading();
532 void OnMsgDidChangeLoadProgress(double load_progress); 535 void OnMsgDidChangeLoadProgress(double load_progress);
533 void OnMsgDocumentAvailableInMainFrame(); 536 void OnMsgDocumentAvailableInMainFrame();
534 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id); 537 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id);
535 void OnMsgContextMenu(const ContextMenuParams& params); 538 void OnMsgContextMenu(const ContextMenuParams& params);
536 void OnMsgToggleFullscreen(bool enter_fullscreen); 539 void OnMsgToggleFullscreen(bool enter_fullscreen);
537 void OnMsgOpenURL(const GURL& url, 540 void OnMsgOpenURL(const ViewHostMsg_OpenURL_Params& params);
538 const content::Referrer& referrer,
539 WindowOpenDisposition disposition,
540 int64 source_frame_id);
541 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); 541 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size);
542 void OnMsgDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar, 542 void OnMsgDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar,
543 bool has_vertical_scrollbar); 543 bool has_vertical_scrollbar);
544 void OnMsgDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left, 544 void OnMsgDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left,
545 bool is_pinned_to_right); 545 bool is_pinned_to_right);
546 void OnMsgDidChangeNumWheelEvents(int count); 546 void OnMsgDidChangeNumWheelEvents(int count);
547 void OnMsgSelectionChanged(const string16& text, 547 void OnMsgSelectionChanged(const string16& text,
548 size_t offset, 548 size_t offset,
549 const ui::Range& range); 549 const ui::Range& range);
550 void OnMsgSelectionBoundsChanged(const gfx::Rect& start_rect, 550 void OnMsgSelectionBoundsChanged(const gfx::Rect& start_rect,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 void OnRequestDesktopNotificationPermission(const GURL& origin, 585 void OnRequestDesktopNotificationPermission(const GURL& origin,
586 int callback_id); 586 int callback_id);
587 void OnShowDesktopNotification( 587 void OnShowDesktopNotification(
588 const content::ShowDesktopNotificationHostMsgParams& params); 588 const content::ShowDesktopNotificationHostMsgParams& params);
589 void OnCancelDesktopNotification(int notification_id); 589 void OnCancelDesktopNotification(int notification_id);
590 void OnRunFileChooser(const content::FileChooserParams& params); 590 void OnRunFileChooser(const content::FileChooserParams& params);
591 591
592 void OnWebUISend(const GURL& source_url, const std::string& name, 592 void OnWebUISend(const GURL& source_url, const std::string& name,
593 const base::ListValue& args); 593 const base::ListValue& args);
594 594
595 void OnSendPostMessage(int64 browsing_instance_frame_id,
596 const ViewMsg_PostMessage_Params& params);
Charlie Reis 2011/12/12 22:20:36 What's this? It isn't implemented in render_view_
supersat 2011/12/15 19:30:49 Old code. Removed.
597
595 #if defined(OS_MACOSX) 598 #if defined(OS_MACOSX)
596 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); 599 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params);
597 #endif 600 #endif
598 601
599 private: 602 private:
600 friend class TestRenderViewHost; 603 friend class TestRenderViewHost;
601 604
602 void ClearPowerSaveBlockers(); 605 void ClearPowerSaveBlockers();
603 606
604 // The SiteInstance associated with this RenderViewHost. All pages drawn 607 // The SiteInstance associated with this RenderViewHost. All pages drawn
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; 686 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap;
684 PowerSaveBlockerMap power_save_blockers_; 687 PowerSaveBlockerMap power_save_blockers_;
685 688
686 // A list of observers that filter messages. Weak references. 689 // A list of observers that filter messages. Weak references.
687 ObserverList<content::RenderViewHostObserver> observers_; 690 ObserverList<content::RenderViewHostObserver> observers_;
688 691
689 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 692 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
690 }; 693 };
691 694
692 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 695 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698