| 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 // Returns whether this WebContents is loading and and the load is to a | 298 // Returns whether this WebContents is loading and and the load is to a |
| 299 // different top-level document (rather than being a navigation within the | 299 // different top-level document (rather than being a navigation within the |
| 300 // same document). This being true implies that IsLoading() is also true. | 300 // same document). This being true implies that IsLoading() is also true. |
| 301 virtual bool IsLoadingToDifferentDocument() const = 0; | 301 virtual bool IsLoadingToDifferentDocument() const = 0; |
| 302 | 302 |
| 303 // Returns whether this WebContents is waiting for a first-response for the | 303 // Returns whether this WebContents is waiting for a first-response for the |
| 304 // main resource of the page. | 304 // main resource of the page. |
| 305 virtual bool IsWaitingForResponse() const = 0; | 305 virtual bool IsWaitingForResponse() const = 0; |
| 306 | 306 |
| 307 // Returns the current load state and the URL associated with it. | 307 // Returns the current load state and the URL associated with it. |
| 308 // The load state is only updated while IsLoading() is true. |
| 308 virtual const net::LoadStateWithParam& GetLoadState() const = 0; | 309 virtual const net::LoadStateWithParam& GetLoadState() const = 0; |
| 309 virtual const base::string16& GetLoadStateHost() const = 0; | 310 virtual const base::string16& GetLoadStateHost() const = 0; |
| 310 | 311 |
| 311 // Returns the upload progress. | 312 // Returns the upload progress. |
| 312 virtual uint64 GetUploadSize() const = 0; | 313 virtual uint64 GetUploadSize() const = 0; |
| 313 virtual uint64 GetUploadPosition() const = 0; | 314 virtual uint64 GetUploadPosition() const = 0; |
| 314 | 315 |
| 315 // Returns a set of the site URLs currently committed in this tab. | 316 // Returns a set of the site URLs currently committed in this tab. |
| 316 virtual std::set<GURL> GetSitesInTab() const = 0; | 317 virtual std::set<GURL> GetSitesInTab() const = 0; |
| 317 | 318 |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 | 660 |
| 660 private: | 661 private: |
| 661 // This interface should only be implemented inside content. | 662 // This interface should only be implemented inside content. |
| 662 friend class WebContentsImpl; | 663 friend class WebContentsImpl; |
| 663 WebContents() {} | 664 WebContents() {} |
| 664 }; | 665 }; |
| 665 | 666 |
| 666 } // namespace content | 667 } // namespace content |
| 667 | 668 |
| 668 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 669 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |