OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_WEB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_WEB_CONTENTS_H_ |
6 #define CHROME_BROWSER_WEB_CONTENTS_H_ | 6 #define CHROME_BROWSER_WEB_CONTENTS_H_ |
7 | 7 |
8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
9 #include "chrome/browser/download/save_package.h" | 9 #include "chrome/browser/download/save_package.h" |
10 #include "chrome/browser/fav_icon_helper.h" | 10 #include "chrome/browser/fav_icon_helper.h" |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 // WebContents. This is used to ensure disconnection notifications only | 483 // WebContents. This is used to ensure disconnection notifications only |
484 // happen if a connection notification has happened and that they happen only | 484 // happen if a connection notification has happened and that they happen only |
485 // once. | 485 // once. |
486 bool notify_disconnection_; | 486 bool notify_disconnection_; |
487 | 487 |
488 // Maps from handle to page_id. | 488 // Maps from handle to page_id. |
489 typedef std::map<HistoryService::Handle, int32> HistoryRequestMap; | 489 typedef std::map<HistoryService::Handle, int32> HistoryRequestMap; |
490 HistoryRequestMap history_requests_; | 490 HistoryRequestMap history_requests_; |
491 | 491 |
492 // System time at which the current load was started. | 492 // System time at which the current load was started. |
493 TimeTicks current_load_start_; | 493 base::TimeTicks current_load_start_; |
494 | 494 |
495 // Whether we have a (non-empty) title for the current page. | 495 // Whether we have a (non-empty) title for the current page. |
496 // Used to prevent subsequent title updates from affecting history. This | 496 // Used to prevent subsequent title updates from affecting history. This |
497 // prevents some weirdness because some AJAXy apps use titles for status | 497 // prevents some weirdness because some AJAXy apps use titles for status |
498 // messages. | 498 // messages. |
499 bool received_page_title_; | 499 bool received_page_title_; |
500 | 500 |
501 // SavePackage, lazily created. | 501 // SavePackage, lazily created. |
502 scoped_refptr<SavePackage> save_package_; | 502 scoped_refptr<SavePackage> save_package_; |
503 | 503 |
(...skipping 16 matching lines...) Expand all Loading... |
520 // PluginInstaller, lazily created. | 520 // PluginInstaller, lazily created. |
521 scoped_ptr<PluginInstaller> plugin_installer_; | 521 scoped_ptr<PluginInstaller> plugin_installer_; |
522 | 522 |
523 // Handles downloading favicons. | 523 // Handles downloading favicons. |
524 FavIconHelper fav_icon_helper_; | 524 FavIconHelper fav_icon_helper_; |
525 | 525 |
526 // Dialog box used for choosing files to upload from file form fields. | 526 // Dialog box used for choosing files to upload from file form fields. |
527 scoped_refptr<SelectFileDialog> select_file_dialog_; | 527 scoped_refptr<SelectFileDialog> select_file_dialog_; |
528 | 528 |
529 // The time that the last javascript message was dismissed. | 529 // The time that the last javascript message was dismissed. |
530 TimeTicks last_javascript_message_dismissal_; | 530 base::TimeTicks last_javascript_message_dismissal_; |
531 | 531 |
532 // True if the user has decided to block future javascript messages. This is | 532 // True if the user has decided to block future javascript messages. This is |
533 // reset on navigations to false on navigations. | 533 // reset on navigations to false on navigations. |
534 bool suppress_javascript_messages_; | 534 bool suppress_javascript_messages_; |
535 | 535 |
536 // When a navigation occurs, we record its contents MIME type. It can be | 536 // When a navigation occurs, we record its contents MIME type. It can be |
537 // used to check whether we can do something for some special contents. | 537 // used to check whether we can do something for some special contents. |
538 std::string contents_mime_type_; | 538 std::string contents_mime_type_; |
539 | 539 |
540 // Character encoding. TODO(jungshik) : convert to std::string | 540 // Character encoding. TODO(jungshik) : convert to std::string |
541 std::wstring encoding_; | 541 std::wstring encoding_; |
542 | 542 |
543 PendingInstall pending_install_; | 543 PendingInstall pending_install_; |
544 | 544 |
545 // The last time that the download shelf was made visible. | 545 // The last time that the download shelf was made visible. |
546 TimeTicks last_download_shelf_show_; | 546 base::TimeTicks last_download_shelf_show_; |
547 | 547 |
548 // The current load state and the URL associated with it. | 548 // The current load state and the URL associated with it. |
549 net::LoadState load_state_; | 549 net::LoadState load_state_; |
550 std::wstring load_state_host_; | 550 std::wstring load_state_host_; |
551 | 551 |
552 // Non-null if we're displaying content for a web app. | 552 // Non-null if we're displaying content for a web app. |
553 scoped_refptr<WebApp> web_app_; | 553 scoped_refptr<WebApp> web_app_; |
554 | 554 |
555 DISALLOW_COPY_AND_ASSIGN(WebContents); | 555 DISALLOW_COPY_AND_ASSIGN(WebContents); |
556 }; | 556 }; |
557 | 557 |
558 #endif // CHROME_BROWSER_WEB_CONTENTS_H_ | 558 #endif // CHROME_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |