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