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

Side by Side Diff: content/public/browser/render_view_host_delegate.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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 12 matching lines...) Expand all
23 #include "webkit/glue/window_open_disposition.h" 23 #include "webkit/glue/window_open_disposition.h"
24 24
25 class GURL; 25 class GURL;
26 class SkBitmap; 26 class SkBitmap;
27 class WebContentsImpl; 27 class WebContentsImpl;
28 class WebKeyboardEvent; 28 class WebKeyboardEvent;
29 struct NativeWebKeyboardEvent; 29 struct NativeWebKeyboardEvent;
30 struct ViewHostMsg_CreateWindow_Params; 30 struct ViewHostMsg_CreateWindow_Params;
31 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; 31 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params;
32 struct ViewHostMsg_FrameNavigate_Params; 32 struct ViewHostMsg_FrameNavigate_Params;
33 struct ViewMsg_PostMessage_Params;
33 struct WebDropData; 34 struct WebDropData;
34 struct WebMenuItem; 35 struct WebMenuItem;
35 struct WebPreferences; 36 struct WebPreferences;
36 37
37 namespace base { 38 namespace base {
38 class ListValue; 39 class ListValue;
39 class TimeTicks; 40 class TimeTicks;
40 } 41 }
41 42
42 namespace gfx { 43 namespace gfx {
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 virtual void RequestTransferURL( 321 virtual void RequestTransferURL(
321 const GURL& url, 322 const GURL& url,
322 const content::Referrer& referrer, 323 const content::Referrer& referrer,
323 WindowOpenDisposition disposition, 324 WindowOpenDisposition disposition,
324 int64 source_frame_id, 325 int64 source_frame_id,
325 const content::GlobalRequestID& old_request_id) {} 326 const content::GlobalRequestID& old_request_id) {}
326 327
327 // The page wants to close the active view in this tab. 328 // The page wants to close the active view in this tab.
328 virtual void RouteCloseEvent(RenderViewHost* rvh) {} 329 virtual void RouteCloseEvent(RenderViewHost* rvh) {}
329 330
331 // The page wants to post a message to the active view in this tab.
332 virtual void RouteMessageEvent(
333 RenderViewHost* rvh,
334 const ViewMsg_PostMessage_Params& params) {}
335
330 // A javascript message, confirmation or prompt should be shown. 336 // A javascript message, confirmation or prompt should be shown.
331 virtual void RunJavaScriptMessage(RenderViewHost* rvh, 337 virtual void RunJavaScriptMessage(RenderViewHost* rvh,
332 const string16& message, 338 const string16& message,
333 const string16& default_prompt, 339 const string16& default_prompt,
334 const GURL& frame_url, 340 const GURL& frame_url,
335 ui::JavascriptMessageType type, 341 ui::JavascriptMessageType type,
336 IPC::Message* reply_msg, 342 IPC::Message* reply_msg,
337 bool* did_suppress_message) {} 343 bool* did_suppress_message) {}
338 344
339 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, 345 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 // Notification that the view has lost the mouse lock. 438 // Notification that the view has lost the mouse lock.
433 virtual void LostMouseLock() {} 439 virtual void LostMouseLock() {}
434 440
435 protected: 441 protected:
436 virtual ~RenderViewHostDelegate() {} 442 virtual ~RenderViewHostDelegate() {}
437 }; 443 };
438 444
439 } // namespace content 445 } // namespace content
440 446
441 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ 447 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698