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

Side by Side Diff: content/browser/web_contents/web_contents_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: Use FromRoutingID 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_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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 17 matching lines...) Expand all
28 #include "ui/gfx/size.h" 28 #include "ui/gfx/size.h"
29 #include "webkit/glue/resource_type.h" 29 #include "webkit/glue/resource_type.h"
30 30
31 #if defined(OS_WIN) 31 #if defined(OS_WIN)
32 #include "base/win/scoped_handle.h" 32 #include "base/win/scoped_handle.h"
33 #endif 33 #endif
34 34
35 class InterstitialPageImpl; 35 class InterstitialPageImpl;
36 class SavePackage; 36 class SavePackage;
37 class SessionStorageNamespaceImpl; 37 class SessionStorageNamespaceImpl;
38 struct ViewHostMsg_PostMessage_Params;
38 39
39 namespace content { 40 namespace content {
40 class ColorChooser; 41 class ColorChooser;
41 class DownloadItem; 42 class DownloadItem;
42 class JavaScriptDialogCreator; 43 class JavaScriptDialogCreator;
43 class RenderViewHost; 44 class RenderViewHost;
44 class RenderViewHostImpl; 45 class RenderViewHostImpl;
45 class SiteInstance; 46 class SiteInstance;
46 class TestWebContents; 47 class TestWebContents;
47 class WebContentsDelegate; 48 class WebContentsDelegate;
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 const content::Referrer& referrer, 303 const content::Referrer& referrer,
303 WindowOpenDisposition disposition, 304 WindowOpenDisposition disposition,
304 int64 source_frame_id) OVERRIDE; 305 int64 source_frame_id) OVERRIDE;
305 virtual void RequestTransferURL( 306 virtual void RequestTransferURL(
306 const GURL& url, 307 const GURL& url,
307 const content::Referrer& referrer, 308 const content::Referrer& referrer,
308 WindowOpenDisposition disposition, 309 WindowOpenDisposition disposition,
309 int64 source_frame_id, 310 int64 source_frame_id,
310 const content::GlobalRequestID& transferred_global_request_id) OVERRIDE; 311 const content::GlobalRequestID& transferred_global_request_id) OVERRIDE;
311 virtual void RouteCloseEvent(content::RenderViewHost* rvh) OVERRIDE; 312 virtual void RouteCloseEvent(content::RenderViewHost* rvh) OVERRIDE;
313 virtual void RouteMessageEvent(
314 content::RenderViewHost* rvh,
315 const ViewHostMsg_PostMessage_Params& params) OVERRIDE;
312 virtual void RunJavaScriptMessage(content::RenderViewHost* rvh, 316 virtual void RunJavaScriptMessage(content::RenderViewHost* rvh,
313 const string16& message, 317 const string16& message,
314 const string16& default_prompt, 318 const string16& default_prompt,
315 const GURL& frame_url, 319 const GURL& frame_url,
316 ui::JavascriptMessageType type, 320 ui::JavascriptMessageType type,
317 IPC::Message* reply_msg, 321 IPC::Message* reply_msg,
318 bool* did_suppress_message) OVERRIDE; 322 bool* did_suppress_message) OVERRIDE;
319 virtual void RunBeforeUnloadConfirm(content::RenderViewHost* rvh, 323 virtual void RunBeforeUnloadConfirm(content::RenderViewHost* rvh,
320 const string16& message, 324 const string16& message,
321 bool is_reload, 325 bool is_reload,
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 // Our view type. Default is VIEW_TYPE_WEB_CONTENTS. 709 // Our view type. Default is VIEW_TYPE_WEB_CONTENTS.
706 content::ViewType view_type_; 710 content::ViewType view_type_;
707 711
708 // Color chooser that was opened by this tab. 712 // Color chooser that was opened by this tab.
709 content::ColorChooser* color_chooser_; 713 content::ColorChooser* color_chooser_;
710 714
711 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 715 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
712 }; 716 };
713 717
714 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 718 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698