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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 | 577 |
578 // Data for loading state ---------------------------------------------------- | 578 // Data for loading state ---------------------------------------------------- |
579 | 579 |
580 // Indicates whether we're currently loading a resource. | 580 // Indicates whether we're currently loading a resource. |
581 bool is_loading_; | 581 bool is_loading_; |
582 | 582 |
583 // Indicates if the tab is considered crashed. | 583 // Indicates if the tab is considered crashed. |
584 base::TerminationStatus crashed_status_; | 584 base::TerminationStatus crashed_status_; |
585 int crashed_error_code_; | 585 int crashed_error_code_; |
586 | 586 |
587 // Whether this tab contents is waiting for a first-response for the | 587 // Whether this WebContents is waiting for a first-response for the |
588 // main resource of the page. This controls whether the throbber state is | 588 // main resource of the page. This controls whether the throbber state is |
589 // "waiting" or "loading." | 589 // "waiting" or "loading." |
590 bool waiting_for_response_; | 590 bool waiting_for_response_; |
591 | 591 |
592 // Map of SiteInstance ID to max page ID for this tab. A page ID is specific | 592 // Map of SiteInstance ID to max page ID for this tab. A page ID is specific |
593 // to a given tab and SiteInstance, and must be valid for the lifetime of the | 593 // to a given tab and SiteInstance, and must be valid for the lifetime of the |
594 // WebContentsImpl. | 594 // WebContentsImpl. |
595 std::map<int32, int32> max_page_ids_; | 595 std::map<int32, int32> max_page_ids_; |
596 | 596 |
597 // System time at which the current load was started. | 597 // System time at which the current load was started. |
(...skipping 17 matching lines...) Expand all Loading... |
615 std::string contents_mime_type_; | 615 std::string contents_mime_type_; |
616 | 616 |
617 // Character encoding. | 617 // Character encoding. |
618 std::string encoding_; | 618 std::string encoding_; |
619 | 619 |
620 // True if this is a secure page which displayed insecure content. | 620 // True if this is a secure page which displayed insecure content. |
621 bool displayed_insecure_content_; | 621 bool displayed_insecure_content_; |
622 | 622 |
623 // Data for misc internal state ---------------------------------------------- | 623 // Data for misc internal state ---------------------------------------------- |
624 | 624 |
625 // Whether the tab contents is currently being screenshotted by the | 625 // Whether the WebContents is currently being screenshotted. |
626 // DraggedTabController. | |
627 bool capturing_contents_; | 626 bool capturing_contents_; |
628 | 627 |
629 // See getter above. | 628 // See getter above. |
630 bool is_being_destroyed_; | 629 bool is_being_destroyed_; |
631 | 630 |
632 // Indicates whether we should notify about disconnection of this | 631 // Indicates whether we should notify about disconnection of this |
633 // WebContentsImpl. This is used to ensure disconnection notifications only | 632 // WebContentsImpl. This is used to ensure disconnection notifications only |
634 // happen if a connection notification has happened and that they happen only | 633 // happen if a connection notification has happened and that they happen only |
635 // once. | 634 // once. |
636 bool notify_disconnection_; | 635 bool notify_disconnection_; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
691 // Is there an opener associated with this? | 690 // Is there an opener associated with this? |
692 bool has_opener_; | 691 bool has_opener_; |
693 | 692 |
694 // Color chooser that was opened by this tab. | 693 // Color chooser that was opened by this tab. |
695 content::ColorChooser* color_chooser_; | 694 content::ColorChooser* color_chooser_; |
696 | 695 |
697 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 696 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
698 }; | 697 }; |
699 | 698 |
700 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 699 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |