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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 | 489 |
490 // Misc non-view stuff ------------------------------------------------------- | 490 // Misc non-view stuff ------------------------------------------------------- |
491 | 491 |
492 // Helper functions for sending notifications. | 492 // Helper functions for sending notifications. |
493 void NotifySwapped(); | 493 void NotifySwapped(); |
494 void NotifyConnected(); | 494 void NotifyConnected(); |
495 void NotifyDisconnected(); | 495 void NotifyDisconnected(); |
496 | 496 |
497 void SetEncoding(const std::string& encoding); | 497 void SetEncoding(const std::string& encoding); |
498 | 498 |
| 499 // Save a URL to the local filesystem. |
| 500 void SaveURL(const GURL& url, const GURL& referrer); |
| 501 |
499 // Stores random bits of data for others to associate with this object. | 502 // Stores random bits of data for others to associate with this object. |
500 // WARNING: this needs to be deleted after NavigationController. | 503 // WARNING: this needs to be deleted after NavigationController. |
501 base::PropertyBag property_bag_; | 504 base::PropertyBag property_bag_; |
502 | 505 |
503 // Data for core operation --------------------------------------------------- | 506 // Data for core operation --------------------------------------------------- |
504 | 507 |
505 // Delegate for notifying our owner about stuff. Not owned by us. | 508 // Delegate for notifying our owner about stuff. Not owned by us. |
506 content::WebContentsDelegate* delegate_; | 509 content::WebContentsDelegate* delegate_; |
507 | 510 |
508 // Handles the back/forward list and loading. | 511 // Handles the back/forward list and loading. |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 // (full-page plugins for now only) permissions. | 643 // (full-page plugins for now only) permissions. |
641 int content_restrictions_; | 644 int content_restrictions_; |
642 | 645 |
643 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. | 646 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. |
644 content::ViewType view_type_; | 647 content::ViewType view_type_; |
645 | 648 |
646 DISALLOW_COPY_AND_ASSIGN(TabContents); | 649 DISALLOW_COPY_AND_ASSIGN(TabContents); |
647 }; | 650 }; |
648 | 651 |
649 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 652 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |