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

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

Issue 972313002: Make <webview> use out-of-process iframe architecture. (Closed) Base URL: ssh://saopaulo.wat/mnt/dev/shared/src@testoopif2z-better-chrome
Patch Set: rename changes Created 5 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
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 <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // 73 //
74 // That's it; go to your kitchen, grab a scone, and chill. WebContents will do 74 // That's it; go to your kitchen, grab a scone, and chill. WebContents will do
75 // all the multi-process stuff behind the scenes. More details are at 75 // all the multi-process stuff behind the scenes. More details are at
76 // http://www.chromium.org/developers/design-documents/multi-process-architectur e . 76 // http://www.chromium.org/developers/design-documents/multi-process-architectur e .
77 // 77 //
78 // Each WebContents has exactly one NavigationController; each 78 // Each WebContents has exactly one NavigationController; each
79 // NavigationController belongs to one WebContents. The NavigationController can 79 // NavigationController belongs to one WebContents. The NavigationController can
80 // be obtained from GetController(), and is used to load URLs into the 80 // be obtained from GetController(), and is used to load URLs into the
81 // WebContents, navigate it backwards/forwards, etc. See navigation_controller.h 81 // WebContents, navigate it backwards/forwards, etc. See navigation_controller.h
82 // for more details. 82 // for more details.
83 class WebContents : public PageNavigator, 83 class WebContents : public PageNavigator,
Charlie Reis 2015/05/22 23:44:31 We may want to add a small paragraph about inner/o
84 public IPC::Sender, 84 public IPC::Sender,
85 public base::SupportsUserData { 85 public base::SupportsUserData {
86 public: 86 public:
87 struct CONTENT_EXPORT CreateParams { 87 struct CONTENT_EXPORT CreateParams {
88 explicit CreateParams(BrowserContext* context); 88 explicit CreateParams(BrowserContext* context);
89 ~CreateParams(); 89 ~CreateParams();
90 CreateParams(BrowserContext* context, SiteInstance* site); 90 CreateParams(BrowserContext* context, SiteInstance* site);
91 91
92 BrowserContext* browser_context; 92 BrowserContext* browser_context;
93 93
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 // SwapOut in RenderViewHost, which run the unload handler. 369 // SwapOut in RenderViewHost, which run the unload handler.
370 // 370 //
371 // |for_cross_site_transition| indicates whether this call is for the current 371 // |for_cross_site_transition| indicates whether this call is for the current
372 // frame during a cross-process navigation. False means we're closing the 372 // frame during a cross-process navigation. False means we're closing the
373 // entire tab. 373 // entire tab.
374 // 374 //
375 // TODO(creis): We should run the beforeunload handler for every frame that 375 // TODO(creis): We should run the beforeunload handler for every frame that
376 // has one. 376 // has one.
377 virtual void DispatchBeforeUnload(bool for_cross_site_transition) = 0; 377 virtual void DispatchBeforeUnload(bool for_cross_site_transition) = 0;
378 378
379 // Attaches or associates this inner WebContents to its container frame
nasko 2015/05/22 16:32:28 nit: What is the difference between "attach" and "
lazyboy 2015/05/26 16:32:55 None, removed "associates".
380 // |outer_contents_frame| in |outer_web_contents|.
381 virtual void AttachToOuterWebContentsFrame(
382 WebContents* outer_web_contents,
383 RenderFrameHost* outer_contents_frame) = 0;
384
379 // Commands ------------------------------------------------------------------ 385 // Commands ------------------------------------------------------------------
380 386
381 // Stop any pending navigation. 387 // Stop any pending navigation.
382 virtual void Stop() = 0; 388 virtual void Stop() = 0;
383 389
384 // Creates a new WebContents with the same state as this one. The returned 390 // Creates a new WebContents with the same state as this one. The returned
385 // heap-allocated pointer is owned by the caller. 391 // heap-allocated pointer is owned by the caller.
386 virtual WebContents* Clone() = 0; 392 virtual WebContents* Clone() = 0;
387 393
388 // Reloads the focused frame. 394 // Reloads the focused frame.
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 665
660 private: 666 private:
661 // This interface should only be implemented inside content. 667 // This interface should only be implemented inside content.
662 friend class WebContentsImpl; 668 friend class WebContentsImpl;
663 WebContents() {} 669 WebContents() {}
664 }; 670 };
665 671
666 } // namespace content 672 } // namespace content
667 673
668 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 674 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698