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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 // Returns the SiteInstance associated with the current page. | 252 // Returns the SiteInstance associated with the current page. |
253 virtual SiteInstance* GetSiteInstance() const = 0; | 253 virtual SiteInstance* GetSiteInstance() const = 0; |
254 | 254 |
255 // Returns the SiteInstance for the pending navigation, if any. Otherwise | 255 // Returns the SiteInstance for the pending navigation, if any. Otherwise |
256 // returns the current SiteInstance. | 256 // returns the current SiteInstance. |
257 virtual SiteInstance* GetPendingSiteInstance() const = 0; | 257 virtual SiteInstance* GetPendingSiteInstance() const = 0; |
258 | 258 |
259 // Return whether this WebContents is loading a resource. | 259 // Return whether this WebContents is loading a resource. |
260 virtual bool IsLoading() const = 0; | 260 virtual bool IsLoading() const = 0; |
261 | 261 |
| 262 // Return whether the document has been loaded in the main frame. |
| 263 virtual bool IsDocumentLoadedInMainFrame() const = 0; |
| 264 |
262 // Returns whether this WebContents is waiting for a first-response for the | 265 // Returns whether this WebContents is waiting for a first-response for the |
263 // main resource of the page. | 266 // main resource of the page. |
264 virtual bool IsWaitingForResponse() const = 0; | 267 virtual bool IsWaitingForResponse() const = 0; |
265 | 268 |
266 // Return the current load state and the URL associated with it. | 269 // Return the current load state and the URL associated with it. |
267 virtual const net::LoadStateWithParam& GetLoadState() const = 0; | 270 virtual const net::LoadStateWithParam& GetLoadState() const = 0; |
268 virtual const base::string16& GetLoadStateHost() const = 0; | 271 virtual const base::string16& GetLoadStateHost() const = 0; |
269 | 272 |
270 // Return the upload progress. | 273 // Return the upload progress. |
271 virtual uint64 GetUploadSize() const = 0; | 274 virtual uint64 GetUploadSize() const = 0; |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 | 552 |
550 private: | 553 private: |
551 // This interface should only be implemented inside content. | 554 // This interface should only be implemented inside content. |
552 friend class WebContentsImpl; | 555 friend class WebContentsImpl; |
553 WebContents() {} | 556 WebContents() {} |
554 }; | 557 }; |
555 | 558 |
556 } // namespace content | 559 } // namespace content |
557 | 560 |
558 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 561 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |