| 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 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 void UpdateRenderViewSizeForRenderManager() override; | 745 void UpdateRenderViewSizeForRenderManager() override; |
| 746 void CancelModalDialogsForRenderManager() override; | 746 void CancelModalDialogsForRenderManager() override; |
| 747 void NotifySwappedFromRenderManager(RenderFrameHost* old_host, | 747 void NotifySwappedFromRenderManager(RenderFrameHost* old_host, |
| 748 RenderFrameHost* new_host, | 748 RenderFrameHost* new_host, |
| 749 bool is_main_frame) override; | 749 bool is_main_frame) override; |
| 750 void NotifyMainFrameSwappedFromRenderManager( | 750 void NotifyMainFrameSwappedFromRenderManager( |
| 751 RenderViewHost* old_host, | 751 RenderViewHost* old_host, |
| 752 RenderViewHost* new_host) override; | 752 RenderViewHost* new_host) override; |
| 753 NavigationControllerImpl& GetControllerForRenderManager() override; | 753 NavigationControllerImpl& GetControllerForRenderManager() override; |
| 754 NavigationEntry* GetLastCommittedNavigationEntryForRenderManager() override; | 754 NavigationEntry* GetLastCommittedNavigationEntryForRenderManager() override; |
| 755 InterstitialPageImpl* GetInterstitialForRenderManager() override; |
| 755 bool FocusLocationBarByDefault() override; | 756 bool FocusLocationBarByDefault() override; |
| 756 void SetFocusToLocationBar(bool select_all) override; | 757 void SetFocusToLocationBar(bool select_all) override; |
| 757 bool IsHidden() override; | 758 bool IsHidden() override; |
| 758 int GetOuterDelegateFrameTreeNodeId() override; | 759 int GetOuterDelegateFrameTreeNodeId() override; |
| 759 RenderWidgetHostImpl* GetFullscreenRenderWidgetHost() const override; | 760 RenderWidgetHostImpl* GetFullscreenRenderWidgetHost() const override; |
| 760 | 761 |
| 761 // NotificationObserver ------------------------------------------------------ | 762 // NotificationObserver ------------------------------------------------------ |
| 762 | 763 |
| 763 void Observe(int type, | 764 void Observe(int type, |
| 764 const NotificationSource& source, | 765 const NotificationSource& source, |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1342 | 1343 |
| 1343 // Upload progress, for displaying in the status bar. | 1344 // Upload progress, for displaying in the status bar. |
| 1344 // Set to zero when there is no significant upload happening. | 1345 // Set to zero when there is no significant upload happening. |
| 1345 uint64_t upload_size_; | 1346 uint64_t upload_size_; |
| 1346 uint64_t upload_position_; | 1347 uint64_t upload_position_; |
| 1347 | 1348 |
| 1348 // Tracks that this WebContents needs to unblock requests to the renderer. | 1349 // Tracks that this WebContents needs to unblock requests to the renderer. |
| 1349 // See ResumeLoadingCreatedWebContents. | 1350 // See ResumeLoadingCreatedWebContents. |
| 1350 bool is_resume_pending_; | 1351 bool is_resume_pending_; |
| 1351 | 1352 |
| 1353 // The interstitial page currently shown, if any. Not owned by this class: the |
| 1354 // InterstitialPage is self-owned and deletes itself asynchronously when |
| 1355 // hidden. Because it may outlive this WebContents, it enters a disabled state |
| 1356 // when hidden or preparing for destruction. |
| 1357 InterstitialPageImpl* interstitial_page_; |
| 1358 |
| 1352 // Data for current page ----------------------------------------------------- | 1359 // Data for current page ----------------------------------------------------- |
| 1353 | 1360 |
| 1354 // When a title cannot be taken from any entry, this title will be used. | 1361 // When a title cannot be taken from any entry, this title will be used. |
| 1355 base::string16 page_title_when_no_navigation_entry_; | 1362 base::string16 page_title_when_no_navigation_entry_; |
| 1356 | 1363 |
| 1357 // When a navigation occurs, we record its contents MIME type. It can be | 1364 // When a navigation occurs, we record its contents MIME type. It can be |
| 1358 // used to check whether we can do something for some special contents. | 1365 // used to check whether we can do something for some special contents. |
| 1359 std::string contents_mime_type_; | 1366 std::string contents_mime_type_; |
| 1360 | 1367 |
| 1361 // The last reported character encoding, not canonicalized. | 1368 // The last reported character encoding, not canonicalized. |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1628 // Adds/removes a callback called on creation of each new WebContents. | 1635 // Adds/removes a callback called on creation of each new WebContents. |
| 1629 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1636 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1630 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1637 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1631 | 1638 |
| 1632 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); | 1639 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); |
| 1633 }; | 1640 }; |
| 1634 | 1641 |
| 1635 } // namespace content | 1642 } // namespace content |
| 1636 | 1643 |
| 1637 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1644 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |