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

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

Issue 10868012: Browser Plugin: New Implementation (Browser Side) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master-trial-obrowser
Patch Set: Rework tests to use timeouts instead of waiting indefinitely, not store any Guest* in embedder. 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
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_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // understand when SessionStorageNamespace objects should be cloned, why 69 // understand when SessionStorageNamespace objects should be cloned, why
70 // they should not be shared by multiple WebContents, and what bad things 70 // they should not be shared by multiple WebContents, and what bad things
71 // can happen if you share the object. 71 // can happen if you share the object.
72 CONTENT_EXPORT static WebContents* CreateWithSessionStorage( 72 CONTENT_EXPORT static WebContents* CreateWithSessionStorage(
73 BrowserContext* browser_context, 73 BrowserContext* browser_context,
74 SiteInstance* site_instance, 74 SiteInstance* site_instance,
75 int routing_id, 75 int routing_id,
76 const WebContents* base_web_contents, 76 const WebContents* base_web_contents,
77 const SessionStorageNamespaceMap& session_storage_namespace_map); 77 const SessionStorageNamespaceMap& session_storage_namespace_map);
78 78
79
80 // Creates a WebContents to be used as a browser plugin guest.
81 CONTENT_EXPORT static WebContents* CreateGuest(
jam 2012/09/11 20:10:03 this doesn't belong on the content api, since it's
lazyboy 2012/09/11 20:50:53 Moved to WebContentsImpl, thanks. Done.
82 BrowserContext* browser_context,
83 const std::string& host,
84 int guest_instance_id);
85
79 // Returns a WebContents that wraps the RenderViewHost, or NULL if the 86 // Returns a WebContents that wraps the RenderViewHost, or NULL if the
80 // render view host's delegate isn't a WebContents. 87 // render view host's delegate isn't a WebContents.
81 CONTENT_EXPORT static WebContents* FromRenderViewHost( 88 CONTENT_EXPORT static WebContents* FromRenderViewHost(
82 const RenderViewHost* rvh); 89 const RenderViewHost* rvh);
83 90
84 virtual ~WebContents() {} 91 virtual ~WebContents() {}
85 92
86 // Intrinsic tab state ------------------------------------------------------- 93 // Intrinsic tab state -------------------------------------------------------
87 94
88 // Gets/Sets the delegate. 95 // Gets/Sets the delegate.
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 // Focuses the location bar. 386 // Focuses the location bar.
380 virtual void SetFocusToLocationBar(bool select_all) = 0; 387 virtual void SetFocusToLocationBar(bool select_all) = 0;
381 388
382 // Does this have an opener associated with it? 389 // Does this have an opener associated with it?
383 virtual bool HasOpener() const = 0; 390 virtual bool HasOpener() const = 0;
384 }; 391 };
385 392
386 } // namespace content 393 } // namespace content
387 394
388 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 395 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698