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. | |
368 virtual bool DisplayedInsecureContent() const = 0; | |
369 | |
370 // Internal state ------------------------------------------------------------ | 367 // Internal state ------------------------------------------------------------ |
371 | 368 |
372 // Indicates whether the WebContents is being captured (e.g., for screenshots | 369 // Indicates whether the WebContents is being captured (e.g., for screenshots |
373 // or mirroring). Increment calls must be balanced with an equivalent number | 370 // or mirroring). Increment calls must be balanced with an equivalent number |
374 // of decrement calls. |capture_size| specifies the capturer's video | 371 // of decrement calls. |capture_size| specifies the capturer's video |
375 // resolution, but can be empty to mean "unspecified." The first screen | 372 // resolution, but can be empty to mean "unspecified." The first screen |
376 // capturer that provides a non-empty |capture_size| will override the value | 373 // capturer that provides a non-empty |capture_size| will override the value |
377 // returned by GetPreferredSize() until all captures have ended. | 374 // returned by GetPreferredSize() until all captures have ended. |
378 virtual void IncrementCapturerCount(const gfx::Size& capture_size) = 0; | 375 virtual void IncrementCapturerCount(const gfx::Size& capture_size) = 0; |
379 virtual void DecrementCapturerCount() = 0; | 376 virtual void DecrementCapturerCount() = 0; |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 | 749 |
753 private: | 750 private: |
754 // This interface should only be implemented inside content. | 751 // This interface should only be implemented inside content. |
755 friend class WebContentsImpl; | 752 friend class WebContentsImpl; |
756 WebContents() {} | 753 WebContents() {} |
757 }; | 754 }; |
758 | 755 |
759 } // namespace content | 756 } // namespace content |
760 | 757 |
761 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 758 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |