| 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_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "ui/gfx/size.h" | 26 #include "ui/gfx/size.h" |
| 27 #include "webkit/glue/resource_type.h" | 27 #include "webkit/glue/resource_type.h" |
| 28 | 28 |
| 29 #if defined(OS_WIN) | 29 #if defined(OS_WIN) |
| 30 #include "base/win/scoped_handle.h" | 30 #include "base/win/scoped_handle.h" |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 class InterstitialPageImpl; | 33 class InterstitialPageImpl; |
| 34 class LoadNotificationDetails; | 34 class LoadNotificationDetails; |
| 35 class RenderViewHost; | 35 class RenderViewHost; |
| 36 class RenderViewHostImpl; |
| 36 class SavePackage; | 37 class SavePackage; |
| 37 class SessionStorageNamespaceImpl; | 38 class SessionStorageNamespaceImpl; |
| 38 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; | 39 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; |
| 39 | 40 |
| 40 namespace content { | 41 namespace content { |
| 41 class DownloadItem; | 42 class DownloadItem; |
| 42 class SiteInstance; | 43 class SiteInstance; |
| 43 class JavaScriptDialogCreator; | 44 class JavaScriptDialogCreator; |
| 44 class WebContentsDelegate; | 45 class WebContentsDelegate; |
| 45 class WebContentsObserver; | 46 class WebContentsObserver; |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 // Helper functions for sending notifications. | 500 // Helper functions for sending notifications. |
| 500 void NotifySwapped(); | 501 void NotifySwapped(); |
| 501 void NotifyConnected(); | 502 void NotifyConnected(); |
| 502 void NotifyDisconnected(); | 503 void NotifyDisconnected(); |
| 503 | 504 |
| 504 void SetEncoding(const std::string& encoding); | 505 void SetEncoding(const std::string& encoding); |
| 505 | 506 |
| 506 // Save a URL to the local filesystem. | 507 // Save a URL to the local filesystem. |
| 507 void SaveURL(const GURL& url, const GURL& referrer, bool is_main_frame); | 508 void SaveURL(const GURL& url, const GURL& referrer, bool is_main_frame); |
| 508 | 509 |
| 510 RenderViewHostImpl* GetRenderViewHostImpl(); |
| 511 |
| 509 // Stores random bits of data for others to associate with this object. | 512 // Stores random bits of data for others to associate with this object. |
| 510 // WARNING: this needs to be deleted after NavigationController. | 513 // WARNING: this needs to be deleted after NavigationController. |
| 511 base::PropertyBag property_bag_; | 514 base::PropertyBag property_bag_; |
| 512 | 515 |
| 513 // Data for core operation --------------------------------------------------- | 516 // Data for core operation --------------------------------------------------- |
| 514 | 517 |
| 515 // Delegate for notifying our owner about stuff. Not owned by us. | 518 // Delegate for notifying our owner about stuff. Not owned by us. |
| 516 content::WebContentsDelegate* delegate_; | 519 content::WebContentsDelegate* delegate_; |
| 517 | 520 |
| 518 // Handles the back/forward list and loading. | 521 // Handles the back/forward list and loading. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 // (full-page plugins for now only) permissions. | 653 // (full-page plugins for now only) permissions. |
| 651 int content_restrictions_; | 654 int content_restrictions_; |
| 652 | 655 |
| 653 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. | 656 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. |
| 654 content::ViewType view_type_; | 657 content::ViewType view_type_; |
| 655 | 658 |
| 656 DISALLOW_COPY_AND_ASSIGN(TabContents); | 659 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 657 }; | 660 }; |
| 658 | 661 |
| 659 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 662 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |