| 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 <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 | 319 |
| 320 // Returns the current load state and the URL associated with it. | 320 // Returns the current load state and the URL associated with it. |
| 321 // The load state is only updated while IsLoading() is true. | 321 // The load state is only updated while IsLoading() is true. |
| 322 virtual const net::LoadStateWithParam& GetLoadState() const = 0; | 322 virtual const net::LoadStateWithParam& GetLoadState() const = 0; |
| 323 virtual const base::string16& GetLoadStateHost() const = 0; | 323 virtual const base::string16& GetLoadStateHost() const = 0; |
| 324 | 324 |
| 325 // Returns the upload progress. | 325 // Returns the upload progress. |
| 326 virtual uint64 GetUploadSize() const = 0; | 326 virtual uint64 GetUploadSize() const = 0; |
| 327 virtual uint64 GetUploadPosition() const = 0; | 327 virtual uint64 GetUploadPosition() const = 0; |
| 328 | 328 |
| 329 // Returns a set of the site URLs currently committed in this tab. | |
| 330 virtual std::set<GURL> GetSitesInTab() const = 0; | |
| 331 | |
| 332 // Returns the character encoding of the page. | 329 // Returns the character encoding of the page. |
| 333 virtual const std::string& GetEncoding() const = 0; | 330 virtual const std::string& GetEncoding() const = 0; |
| 334 | 331 |
| 335 // True if this is a secure page which displayed insecure content. | 332 // True if this is a secure page which displayed insecure content. |
| 336 virtual bool DisplayedInsecureContent() const = 0; | 333 virtual bool DisplayedInsecureContent() const = 0; |
| 337 | 334 |
| 338 // Internal state ------------------------------------------------------------ | 335 // Internal state ------------------------------------------------------------ |
| 339 | 336 |
| 340 // Indicates whether the WebContents is being captured (e.g., for screenshots | 337 // Indicates whether the WebContents is being captured (e.g., for screenshots |
| 341 // or mirroring). Increment calls must be balanced with an equivalent number | 338 // or mirroring). Increment calls must be balanced with an equivalent number |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 | 691 |
| 695 private: | 692 private: |
| 696 // This interface should only be implemented inside content. | 693 // This interface should only be implemented inside content. |
| 697 friend class WebContentsImpl; | 694 friend class WebContentsImpl; |
| 698 WebContents() {} | 695 WebContents() {} |
| 699 }; | 696 }; |
| 700 | 697 |
| 701 } // namespace content | 698 } // namespace content |
| 702 | 699 |
| 703 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 700 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |