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

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

Issue 10829225: Browser Plugin: Add HTML5-like postMessage support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed crash + cleanup Created 8 years, 3 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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 // Creates a WebContents to be used as a browser plugin guest. 94 // Creates a WebContents to be used as a browser plugin guest.
95 static WebContentsImpl* CreateGuest(content::BrowserContext* browser_context, 95 static WebContentsImpl* CreateGuest(content::BrowserContext* browser_context,
96 const std::string& host, 96 const std::string& host,
97 int guest_instance_id); 97 int guest_instance_id);
98 98
99 // Returns the content specific prefs for the given RVH. 99 // Returns the content specific prefs for the given RVH.
100 static webkit_glue::WebPreferences GetWebkitPrefs( 100 static webkit_glue::WebPreferences GetWebkitPrefs(
101 content::RenderViewHost* rvh, const GURL& url); 101 content::RenderViewHost* rvh, const GURL& url);
102 102
103 // Creates a swapped out RenderView in the guest render process
104 // to allow the guest to postMessage back to its embedder.
105 int CreateSwappedOutRenderViewForGuest(content::SiteInstance* instance);
106
103 // Complex initialization here. Specifically needed to avoid having 107 // Complex initialization here. Specifically needed to avoid having
104 // members call back into our virtual functions in the constructor. 108 // members call back into our virtual functions in the constructor.
105 virtual void Init(content::BrowserContext* browser_context, 109 virtual void Init(content::BrowserContext* browser_context,
106 content::SiteInstance* site_instance, 110 content::SiteInstance* site_instance,
107 int routing_id, 111 int routing_id,
108 const content::WebContents* base_web_contents); 112 const content::WebContents* base_web_contents);
109 113
110 // Returns the SavePackage which manages the page saving job. May be NULL. 114 // Returns the SavePackage which manages the page saving job. May be NULL.
111 SavePackage* save_package() const { return save_package_.get(); } 115 SavePackage* save_package() const { return save_package_.get(); }
112 116
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 content::NotificationRegistrar registrar_; 861 content::NotificationRegistrar registrar_;
858 862
859 // Used during IPC message dispatching so that the handlers can get a pointer 863 // Used during IPC message dispatching so that the handlers can get a pointer
860 // to the RVH through which the message was received. 864 // to the RVH through which the message was received.
861 content::RenderViewHost* message_source_; 865 content::RenderViewHost* message_source_;
862 866
863 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 867 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
864 }; 868 };
865 869
866 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 870 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698