| 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_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 // Indicates/Sets whether all audio output from this WebContents is muted. | 361 // Indicates/Sets whether all audio output from this WebContents is muted. |
| 362 virtual bool IsAudioMuted() const = 0; | 362 virtual bool IsAudioMuted() const = 0; |
| 363 virtual void SetAudioMuted(bool mute) = 0; | 363 virtual void SetAudioMuted(bool mute) = 0; |
| 364 | 364 |
| 365 // Indicates whether this tab should be considered crashed. The setter will | 365 // Indicates whether this tab should be considered crashed. The setter will |
| 366 // also notify the delegate when the flag is changed. | 366 // also notify the delegate when the flag is changed. |
| 367 virtual bool IsCrashed() const = 0; | 367 virtual bool IsCrashed() const = 0; |
| 368 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0; | 368 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0; |
| 369 | 369 |
| 370 virtual base::TerminationStatus GetCrashedStatus() const = 0; | 370 virtual base::TerminationStatus GetCrashedStatus() const = 0; |
| 371 virtual int GetCrashedErrorCode() const = 0; |
| 371 | 372 |
| 372 // Whether the tab is in the process of being destroyed. | 373 // Whether the tab is in the process of being destroyed. |
| 373 virtual bool IsBeingDestroyed() const = 0; | 374 virtual bool IsBeingDestroyed() const = 0; |
| 374 | 375 |
| 375 // Convenience method for notifying the delegate of a navigation state | 376 // Convenience method for notifying the delegate of a navigation state |
| 376 // change. | 377 // change. |
| 377 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; | 378 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; |
| 378 | 379 |
| 379 // Get/Set the last time that the WebContents was made active (either when it | 380 // Get/Set the last time that the WebContents was made active (either when it |
| 380 // was created or shown with WasShown()). | 381 // was created or shown with WasShown()). |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 | 719 |
| 719 private: | 720 private: |
| 720 // This interface should only be implemented inside content. | 721 // This interface should only be implemented inside content. |
| 721 friend class WebContentsImpl; | 722 friend class WebContentsImpl; |
| 722 WebContents() {} | 723 WebContents() {} |
| 723 }; | 724 }; |
| 724 | 725 |
| 725 } // namespace content | 726 } // namespace content |
| 726 | 727 |
| 727 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 728 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |