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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 9108001: Adds support for calling postMessage on a frame living in a different renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Invert check. Created 8 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 | 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_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 25 matching lines...) Expand all
36 #include "content/renderer/renderer_webcookiejar_impl.h" 36 #include "content/renderer/renderer_webcookiejar_impl.h"
37 #include "ipc/ipc_platform_file.h" 37 #include "ipc/ipc_platform_file.h"
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h"
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h"
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h"
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h"
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h"
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie nt.h" 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie nt.h"
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h" 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h"
46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h"
48 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste m.h" 49 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste m.h"
49 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h" 50 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h"
50 #include "ui/base/javascript_message_type.h" 51 #include "ui/base/javascript_message_type.h"
51 #include "ui/surface/transport_dib.h" 52 #include "ui/surface/transport_dib.h"
52 #include "webkit/glue/webpreferences.h" 53 #include "webkit/glue/webpreferences.h"
53 #include "webkit/media/webmediaplayer_delegate.h" 54 #include "webkit/media/webmediaplayer_delegate.h"
54 #include "webkit/plugins/npapi/webplugin_page_delegate.h" 55 #include "webkit/plugins/npapi/webplugin_page_delegate.h"
55 56
(...skipping 18 matching lines...) Expand all
74 class MouseLockDispatcher; 75 class MouseLockDispatcher;
75 class NotificationProvider; 76 class NotificationProvider;
76 class PepperDeviceTest; 77 class PepperDeviceTest;
77 struct PP_NetAddress_Private; 78 struct PP_NetAddress_Private;
78 class RenderWidgetFullscreenPepper; 79 class RenderWidgetFullscreenPepper;
79 class RendererAccessibility; 80 class RendererAccessibility;
80 class RendererWebColorChooserImpl; 81 class RendererWebColorChooserImpl;
81 class SkBitmap; 82 class SkBitmap;
82 class InputTagSpeechDispatcher; 83 class InputTagSpeechDispatcher;
83 struct ViewMsg_Navigate_Params; 84 struct ViewMsg_Navigate_Params;
85 struct ViewMsg_PostMessage_Params;
84 struct ViewMsg_StopFinding_Params; 86 struct ViewMsg_StopFinding_Params;
85 struct ViewMsg_SwapOut_Params; 87 struct ViewMsg_SwapOut_Params;
86 struct WebDropData; 88 struct WebDropData;
87 class WebIntentsHost; 89 class WebIntentsHost;
88 class WebPluginDelegateProxy; 90 class WebPluginDelegateProxy;
89 class WebUIBindings; 91 class WebUIBindings;
90 92
91 namespace content { 93 namespace content {
92 class DocumentState; 94 class DocumentState;
93 class NavigationState; 95 class NavigationState;
(...skipping 19 matching lines...) Expand all
113 } // namespace webkit 115 } // namespace webkit
114 116
115 namespace webkit_glue { 117 namespace webkit_glue {
116 class ImageResourceFetcher; 118 class ImageResourceFetcher;
117 class ResourceFetcher; 119 class ResourceFetcher;
118 } 120 }
119 121
120 namespace WebKit { 122 namespace WebKit {
121 class WebApplicationCacheHost; 123 class WebApplicationCacheHost;
122 class WebApplicationCacheHostClient; 124 class WebApplicationCacheHostClient;
125 class WebDOMMessageEvent;
123 class WebDataSource; 126 class WebDataSource;
124 class WebDragData; 127 class WebDragData;
125 class WebGeolocationClient; 128 class WebGeolocationClient;
126 class WebIconURL; 129 class WebIconURL;
127 class WebImage; 130 class WebImage;
128 class WebPeerConnection00Handler; 131 class WebPeerConnection00Handler;
129 class WebPeerConnection00HandlerClient; 132 class WebPeerConnection00HandlerClient;
130 class WebMediaPlayer; 133 class WebMediaPlayer;
131 class WebMediaPlayerClient; 134 class WebMediaPlayerClient;
132 class WebMouseEvent; 135 class WebMouseEvent;
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 WebKit::WebStorageQuotaType type, 591 WebKit::WebStorageQuotaType type,
589 unsigned long long requested_size, 592 unsigned long long requested_size,
590 WebKit::WebStorageQuotaCallbacks* callbacks); 593 WebKit::WebStorageQuotaCallbacks* callbacks);
591 virtual void registerIntentService( 594 virtual void registerIntentService(
592 WebKit::WebFrame* frame, 595 WebKit::WebFrame* frame,
593 const WebKit::WebIntentServiceInfo& service); 596 const WebKit::WebIntentServiceInfo& service);
594 virtual void dispatchIntent(WebKit::WebFrame* frame, 597 virtual void dispatchIntent(WebKit::WebFrame* frame,
595 const WebKit::WebIntentRequest& intentRequest); 598 const WebKit::WebIntentRequest& intentRequest);
596 virtual void willOpenSocketStream( 599 virtual void willOpenSocketStream(
597 WebKit::WebSocketStreamHandle* handle); 600 WebKit::WebSocketStreamHandle* handle);
601 virtual bool willCheckAndDispatchMessageEvent(
602 WebKit::WebFrame* source,
603 WebKit::WebSecurityOrigin targetOrigin,
604 WebKit::WebDOMMessageEvent event) OVERRIDE;
598 605
599 // WebKit::WebPageSerializerClient implementation ---------------------------- 606 // WebKit::WebPageSerializerClient implementation ----------------------------
600 607
601 virtual void didSerializeDataForFrame( 608 virtual void didSerializeDataForFrame(
602 const WebKit::WebURL& frame_url, 609 const WebKit::WebURL& frame_url,
603 const WebKit::WebCString& data, 610 const WebKit::WebCString& data,
604 PageSerializationStatus status) OVERRIDE; 611 PageSerializationStatus status) OVERRIDE;
605 612
606 // content::RenderView implementation ---------------------------------------- 613 // content::RenderView implementation ----------------------------------------
607 614
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 const WebKit::WebMediaPlayerAction& action); 871 const WebKit::WebMediaPlayerAction& action);
865 void OnPluginActionAt(const gfx::Point& location, 872 void OnPluginActionAt(const gfx::Point& location,
866 const WebKit::WebPluginAction& action); 873 const WebKit::WebPluginAction& action);
867 void OnMoveOrResizeStarted(); 874 void OnMoveOrResizeStarted();
868 CONTENT_EXPORT void OnNavigate(const ViewMsg_Navigate_Params& params); 875 CONTENT_EXPORT void OnNavigate(const ViewMsg_Navigate_Params& params);
869 void OnPaste(); 876 void OnPaste();
870 void OnPasteAndMatchStyle(); 877 void OnPasteAndMatchStyle();
871 #if defined(OS_MACOSX) 878 #if defined(OS_MACOSX)
872 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); 879 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id);
873 #endif 880 #endif
881 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params);
874 void OnRedo(); 882 void OnRedo();
875 void OnReloadFrame(); 883 void OnReloadFrame();
876 void OnReplace(const string16& text); 884 void OnReplace(const string16& text);
877 void OnResetPageEncodingToDefault(); 885 void OnResetPageEncodingToDefault();
878 void OnScriptEvalRequest(const string16& frame_xpath, 886 void OnScriptEvalRequest(const string16& frame_xpath,
879 const string16& jscript, 887 const string16& jscript,
880 int id, 888 int id,
881 bool notify_result); 889 bool notify_result);
882 void OnSelectAll(); 890 void OnSelectAll();
883 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); 891 void OnSelectRange(const gfx::Point& start, const gfx::Point& end);
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 // bunch of stuff, you should probably create a helper class and put your 1350 // bunch of stuff, you should probably create a helper class and put your
1343 // data and methods on that to avoid bloating RenderView more. You can 1351 // data and methods on that to avoid bloating RenderView more. You can
1344 // use the Observer interface to filter IPC messages and receive frame change 1352 // use the Observer interface to filter IPC messages and receive frame change
1345 // notifications. 1353 // notifications.
1346 // --------------------------------------------------------------------------- 1354 // ---------------------------------------------------------------------------
1347 1355
1348 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1356 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1349 }; 1357 };
1350 1358
1351 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1359 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_view_host_delegate.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698