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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 virtual bool IsWaitingForResponse() const = 0; | 240 virtual bool IsWaitingForResponse() const = 0; |
241 | 241 |
242 // Return the current load state and the URL associated with it. | 242 // Return the current load state and the URL associated with it. |
243 virtual const net::LoadStateWithParam& GetLoadState() const = 0; | 243 virtual const net::LoadStateWithParam& GetLoadState() const = 0; |
244 virtual const string16& GetLoadStateHost() const = 0; | 244 virtual const string16& GetLoadStateHost() const = 0; |
245 | 245 |
246 // Return the upload progress. | 246 // Return the upload progress. |
247 virtual uint64 GetUploadSize() const = 0; | 247 virtual uint64 GetUploadSize() const = 0; |
248 virtual uint64 GetUploadPosition() const = 0; | 248 virtual uint64 GetUploadPosition() const = 0; |
249 | 249 |
| 250 // Returns a set of the site URLs currently committed in this tab. |
| 251 virtual std::set<GURL> GetSitesInTab() const = 0; |
| 252 |
250 // Return the character encoding of the page. | 253 // Return the character encoding of the page. |
251 virtual const std::string& GetEncoding() const = 0; | 254 virtual const std::string& GetEncoding() const = 0; |
252 | 255 |
253 // True if this is a secure page which displayed insecure content. | 256 // True if this is a secure page which displayed insecure content. |
254 virtual bool DisplayedInsecureContent() const = 0; | 257 virtual bool DisplayedInsecureContent() const = 0; |
255 | 258 |
256 // Internal state ------------------------------------------------------------ | 259 // Internal state ------------------------------------------------------------ |
257 | 260 |
258 // Indicates whether the WebContents is being captured (e.g., for screenshots | 261 // Indicates whether the WebContents is being captured (e.g., for screenshots |
259 // or mirroring). Increment calls must be balanced with an equivalent number | 262 // or mirroring). Increment calls must be balanced with an equivalent number |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 | 465 |
463 private: | 466 private: |
464 // This interface should only be implemented inside content. | 467 // This interface should only be implemented inside content. |
465 friend class WebContentsImpl; | 468 friend class WebContentsImpl; |
466 WebContents() {} | 469 WebContents() {} |
467 }; | 470 }; |
468 | 471 |
469 } // namespace content | 472 } // namespace content |
470 | 473 |
471 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 474 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |