| 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 virtual const net::LoadStateWithParam& GetLoadState() const = 0; | 357 virtual const net::LoadStateWithParam& GetLoadState() const = 0; |
| 358 virtual const base::string16& GetLoadStateHost() const = 0; | 358 virtual const base::string16& GetLoadStateHost() const = 0; |
| 359 | 359 |
| 360 // Returns the upload progress. | 360 // Returns the upload progress. |
| 361 virtual uint64_t GetUploadSize() const = 0; | 361 virtual uint64_t GetUploadSize() const = 0; |
| 362 virtual uint64_t GetUploadPosition() const = 0; | 362 virtual uint64_t GetUploadPosition() const = 0; |
| 363 | 363 |
| 364 // Returns the character encoding of the page. | 364 // Returns the character encoding of the page. |
| 365 virtual const std::string& GetEncoding() const = 0; | 365 virtual const std::string& GetEncoding() const = 0; |
| 366 | 366 |
| 367 // True if this is a secure page which displayed insecure content. | 367 // True if this is a secure page which displayed content loaded over |
| 368 // an insecure (HTTP) connection. |
| 368 virtual bool DisplayedInsecureContent() const = 0; | 369 virtual bool DisplayedInsecureContent() const = 0; |
| 369 | 370 |
| 371 // True if this is a secure page which displayed content loaded over |
| 372 // a connection with certificate errors. |
| 373 virtual bool DisplayedContentWithCertificateErrors() const = 0; |
| 374 |
| 370 // Internal state ------------------------------------------------------------ | 375 // Internal state ------------------------------------------------------------ |
| 371 | 376 |
| 372 // Indicates whether the WebContents is being captured (e.g., for screenshots | 377 // Indicates whether the WebContents is being captured (e.g., for screenshots |
| 373 // or mirroring). Increment calls must be balanced with an equivalent number | 378 // or mirroring). Increment calls must be balanced with an equivalent number |
| 374 // of decrement calls. |capture_size| specifies the capturer's video | 379 // of decrement calls. |capture_size| specifies the capturer's video |
| 375 // resolution, but can be empty to mean "unspecified." The first screen | 380 // resolution, but can be empty to mean "unspecified." The first screen |
| 376 // capturer that provides a non-empty |capture_size| will override the value | 381 // capturer that provides a non-empty |capture_size| will override the value |
| 377 // returned by GetPreferredSize() until all captures have ended. | 382 // returned by GetPreferredSize() until all captures have ended. |
| 378 virtual void IncrementCapturerCount(const gfx::Size& capture_size) = 0; | 383 virtual void IncrementCapturerCount(const gfx::Size& capture_size) = 0; |
| 379 virtual void DecrementCapturerCount() = 0; | 384 virtual void DecrementCapturerCount() = 0; |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 | 757 |
| 753 private: | 758 private: |
| 754 // This interface should only be implemented inside content. | 759 // This interface should only be implemented inside content. |
| 755 friend class WebContentsImpl; | 760 friend class WebContentsImpl; |
| 756 WebContents() {} | 761 WebContents() {} |
| 757 }; | 762 }; |
| 758 | 763 |
| 759 } // namespace content | 764 } // namespace content |
| 760 | 765 |
| 761 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 766 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |