OLD | NEW |
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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class RenderWidgetHostView; | 43 class RenderWidgetHostView; |
44 class SessionStorageNamespace; | 44 class SessionStorageNamespace; |
45 class SiteInstance; | 45 class SiteInstance; |
46 class WebContentsDelegate; | 46 class WebContentsDelegate; |
47 class WebContentsView; | 47 class WebContentsView; |
48 struct RendererPreferences; | 48 struct RendererPreferences; |
49 | 49 |
50 // Describes what goes in the main content area of a tab. | 50 // Describes what goes in the main content area of a tab. |
51 class WebContents : public PageNavigator { | 51 class WebContents : public PageNavigator { |
52 public: | 52 public: |
53 // |base_tab_contents| is used if we want to size the new tab contents view | 53 // |base_web_contents| is used if we want to size the new web contents view |
54 // based on an existing tab contents view. This can be NULL if not needed. | 54 // based on an existing web contents view. This can be NULL if not needed. |
55 // | 55 // |
56 // The session storage namespace parameter allows multiple render views and | 56 // The session storage namespace parameter allows multiple render views and |
57 // tab contentses to share the same session storage (part of the WebStorage | 57 // tab contentses to share the same session storage (part of the WebStorage |
58 // spec) space. This is useful when restoring tabs, but most callers should | 58 // spec) space. This is useful when restoring tabs, but most callers should |
59 // pass in NULL which will cause a new SessionStorageNamespace to be created. | 59 // pass in NULL which will cause a new SessionStorageNamespace to be created. |
60 CONTENT_EXPORT static WebContents* Create( | 60 CONTENT_EXPORT static WebContents* Create( |
61 BrowserContext* browser_context, | 61 BrowserContext* browser_context, |
62 SiteInstance* site_instance, | 62 SiteInstance* site_instance, |
63 int routing_id, | 63 int routing_id, |
64 const WebContents* base_web_contents, | 64 const WebContents* base_web_contents, |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 // Focuses the location bar. | 371 // Focuses the location bar. |
372 virtual void SetFocusToLocationBar(bool select_all) = 0; | 372 virtual void SetFocusToLocationBar(bool select_all) = 0; |
373 | 373 |
374 // Does this have an opener associated with it? | 374 // Does this have an opener associated with it? |
375 virtual bool HasOpener() const = 0; | 375 virtual bool HasOpener() const = 0; |
376 }; | 376 }; |
377 | 377 |
378 } // namespace content | 378 } // namespace content |
379 | 379 |
380 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 380 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |