| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 // Indicates/Sets whether all audio output from this WebContents is muted. | 357 // Indicates/Sets whether all audio output from this WebContents is muted. |
| 358 virtual bool IsAudioMuted() const = 0; | 358 virtual bool IsAudioMuted() const = 0; |
| 359 virtual void SetAudioMuted(bool mute) = 0; | 359 virtual void SetAudioMuted(bool mute) = 0; |
| 360 | 360 |
| 361 // Indicates whether this tab should be considered crashed. The setter will | 361 // Indicates whether this tab should be considered crashed. The setter will |
| 362 // also notify the delegate when the flag is changed. | 362 // also notify the delegate when the flag is changed. |
| 363 virtual bool IsCrashed() const = 0; | 363 virtual bool IsCrashed() const = 0; |
| 364 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0; | 364 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0; |
| 365 | 365 |
| 366 virtual base::TerminationStatus GetCrashedStatus() const = 0; | 366 virtual base::TerminationStatus GetCrashedStatus() const = 0; |
| 367 virtual int GetCrashedErrorCode() const = 0; |
| 367 | 368 |
| 368 // Whether the tab is in the process of being destroyed. | 369 // Whether the tab is in the process of being destroyed. |
| 369 virtual bool IsBeingDestroyed() const = 0; | 370 virtual bool IsBeingDestroyed() const = 0; |
| 370 | 371 |
| 371 // Convenience method for notifying the delegate of a navigation state | 372 // Convenience method for notifying the delegate of a navigation state |
| 372 // change. | 373 // change. |
| 373 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; | 374 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; |
| 374 | 375 |
| 375 // Get/Set the last time that the WebContents was made active (either when it | 376 // Get/Set the last time that the WebContents was made active (either when it |
| 376 // was created or shown with WasShown()). | 377 // was created or shown with WasShown()). |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 | 711 |
| 711 private: | 712 private: |
| 712 // This interface should only be implemented inside content. | 713 // This interface should only be implemented inside content. |
| 713 friend class WebContentsImpl; | 714 friend class WebContentsImpl; |
| 714 WebContents() {} | 715 WebContents() {} |
| 715 }; | 716 }; |
| 716 | 717 |
| 717 } // namespace content | 718 } // namespace content |
| 718 | 719 |
| 719 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 720 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |