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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 1046933005: Refactor postMessage for out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Charlie's nits Created 5 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
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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 25 matching lines...) Expand all
36 #include "content/public/common/three_d_api_types.h" 36 #include "content/public/common/three_d_api_types.h"
37 #include "net/base/load_states.h" 37 #include "net/base/load_states.h"
38 #include "net/http/http_response_headers.h" 38 #include "net/http/http_response_headers.h"
39 #include "third_party/WebKit/public/web/WebDragOperation.h" 39 #include "third_party/WebKit/public/web/WebDragOperation.h"
40 #include "ui/base/page_transition_types.h" 40 #include "ui/base/page_transition_types.h"
41 #include "ui/gfx/geometry/rect_f.h" 41 #include "ui/gfx/geometry/rect_f.h"
42 #include "ui/gfx/geometry/size.h" 42 #include "ui/gfx/geometry/size.h"
43 43
44 struct BrowserPluginHostMsg_ResizeGuest_Params; 44 struct BrowserPluginHostMsg_ResizeGuest_Params;
45 struct ViewHostMsg_DateTimeDialogValue_Params; 45 struct ViewHostMsg_DateTimeDialogValue_Params;
46 struct ViewMsg_PostMessage_Params;
47 46
48 namespace content { 47 namespace content {
49 class BrowserPluginEmbedder; 48 class BrowserPluginEmbedder;
50 class BrowserPluginGuest; 49 class BrowserPluginGuest;
51 class BrowserPluginGuestManager; 50 class BrowserPluginGuestManager;
52 class DateTimeChooserAndroid; 51 class DateTimeChooserAndroid;
53 class DownloadItem; 52 class DownloadItem;
54 class GeolocationServiceContext; 53 class GeolocationServiceContext;
55 class InterstitialPageImpl; 54 class InterstitialPageImpl;
56 class JavaScriptDialogManager; 55 class JavaScriptDialogManager;
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 bool IsNeverVisible() override; 404 bool IsNeverVisible() override;
406 AccessibilityMode GetAccessibilityMode() const override; 405 AccessibilityMode GetAccessibilityMode() const override;
407 void AccessibilityEventReceived( 406 void AccessibilityEventReceived(
408 const std::vector<AXEventNotificationDetails>& details) override; 407 const std::vector<AXEventNotificationDetails>& details) override;
409 RenderFrameHost* GetGuestByInstanceID( 408 RenderFrameHost* GetGuestByInstanceID(
410 RenderFrameHost* render_frame_host, 409 RenderFrameHost* render_frame_host,
411 int browser_plugin_instance_id) override; 410 int browser_plugin_instance_id) override;
412 GeolocationServiceContext* GetGeolocationServiceContext() override; 411 GeolocationServiceContext* GetGeolocationServiceContext() override;
413 void EnterFullscreenMode(const GURL& origin) override; 412 void EnterFullscreenMode(const GURL& origin) override;
414 void ExitFullscreenMode() override; 413 void ExitFullscreenMode() override;
414 bool ShouldRouteMessageEvent(
415 RenderFrameHost* target_rfh,
416 SiteInstance* source_site_instance) const override;
417 int EnsureOpenerRenderViewsExist(RenderFrameHost* source_rfh) override;
415 #if defined(OS_WIN) 418 #if defined(OS_WIN)
416 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; 419 gfx::NativeViewAccessible GetParentNativeViewAccessible() override;
417 #endif 420 #endif
418 421
419 // RenderViewHostDelegate ---------------------------------------------------- 422 // RenderViewHostDelegate ----------------------------------------------------
420 RenderViewHostDelegateView* GetDelegateView() override; 423 RenderViewHostDelegateView* GetDelegateView() override;
421 bool OnMessageReceived(RenderViewHost* render_view_host, 424 bool OnMessageReceived(RenderViewHost* render_view_host,
422 const IPC::Message& message) override; 425 const IPC::Message& message) override;
423 // RenderFrameHostDelegate has the same method, so list it there because this 426 // RenderFrameHostDelegate has the same method, so list it there because this
424 // interface is going away. 427 // interface is going away.
425 // virtual WebContents* GetAsWebContents() override; 428 // virtual WebContents* GetAsWebContents() override;
426 gfx::Rect GetRootWindowResizerRect() const override; 429 gfx::Rect GetRootWindowResizerRect() const override;
427 void RenderViewCreated(RenderViewHost* render_view_host) override; 430 void RenderViewCreated(RenderViewHost* render_view_host) override;
428 void RenderViewReady(RenderViewHost* render_view_host) override; 431 void RenderViewReady(RenderViewHost* render_view_host) override;
429 void RenderViewTerminated(RenderViewHost* render_view_host, 432 void RenderViewTerminated(RenderViewHost* render_view_host,
430 base::TerminationStatus status, 433 base::TerminationStatus status,
431 int error_code) override; 434 int error_code) override;
432 void RenderViewDeleted(RenderViewHost* render_view_host) override; 435 void RenderViewDeleted(RenderViewHost* render_view_host) override;
433 void UpdateState(RenderViewHost* render_view_host, 436 void UpdateState(RenderViewHost* render_view_host,
434 int32 page_id, 437 int32 page_id,
435 const PageState& page_state) override; 438 const PageState& page_state) override;
436 void UpdateTargetURL(RenderViewHost* render_view_host, 439 void UpdateTargetURL(RenderViewHost* render_view_host,
437 const GURL& url) override; 440 const GURL& url) override;
438 void Close(RenderViewHost* render_view_host) override; 441 void Close(RenderViewHost* render_view_host) override;
439 void RequestMove(const gfx::Rect& new_bounds) override; 442 void RequestMove(const gfx::Rect& new_bounds) override;
440 void DidCancelLoading() override; 443 void DidCancelLoading() override;
441 void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) override; 444 void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) override;
442 void RouteCloseEvent(RenderViewHost* rvh) override; 445 void RouteCloseEvent(RenderViewHost* rvh) override;
443 void RouteMessageEvent(RenderViewHost* rvh,
444 const ViewMsg_PostMessage_Params& params) override;
445 bool AddMessageToConsole(int32 level, 446 bool AddMessageToConsole(int32 level,
446 const base::string16& message, 447 const base::string16& message,
447 int32 line_no, 448 int32 line_no,
448 const base::string16& source_id) override; 449 const base::string16& source_id) override;
449 RendererPreferences GetRendererPrefs( 450 RendererPreferences GetRendererPrefs(
450 BrowserContext* browser_context) const override; 451 BrowserContext* browser_context) const override;
451 void OnUserGesture() override; 452 void OnUserGesture() override;
452 void OnIgnoredUIEvent() override; 453 void OnIgnoredUIEvent() override;
453 void RendererUnresponsive(RenderViewHost* render_view_host) override; 454 void RendererUnresponsive(RenderViewHost* render_view_host) override;
454 void RendererResponsive(RenderViewHost* render_view_host) override; 455 void RendererResponsive(RenderViewHost* render_view_host) override;
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 // Adds/removes a callback called on creation of each new WebContents. 1278 // Adds/removes a callback called on creation of each new WebContents.
1278 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1279 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1279 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1280 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1280 1281
1281 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1282 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1282 }; 1283 };
1283 1284
1284 } // namespace content 1285 } // namespace content
1285 1286
1286 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1287 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/site_per_process_browsertest.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698