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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 virtual uint64 GetUploadPosition() const = 0; | 213 virtual uint64 GetUploadPosition() const = 0; |
214 | 214 |
215 // Return the character encoding of the page. | 215 // Return the character encoding of the page. |
216 virtual const std::string& GetEncoding() const = 0; | 216 virtual const std::string& GetEncoding() const = 0; |
217 | 217 |
218 // True if this is a secure page which displayed insecure content. | 218 // True if this is a secure page which displayed insecure content. |
219 virtual bool DisplayedInsecureContent() const = 0; | 219 virtual bool DisplayedInsecureContent() const = 0; |
220 | 220 |
221 // Internal state ------------------------------------------------------------ | 221 // Internal state ------------------------------------------------------------ |
222 | 222 |
223 // This flag indicates whether the WebContents is currently being | 223 // Indicates whether the WebContents is being captured (e.g., for screenshots |
224 // screenshotted. | 224 // or mirroring). Increment calls must be balanced with an equivalent number |
225 virtual void SetCapturingContents(bool cap) = 0; | 225 // of decrement calls. |
| 226 virtual void IncrementCapturerCount() = 0; |
| 227 virtual void DecrementCapturerCount() = 0; |
226 | 228 |
227 // Indicates whether this tab should be considered crashed. The setter will | 229 // Indicates whether this tab should be considered crashed. The setter will |
228 // also notify the delegate when the flag is changed. | 230 // also notify the delegate when the flag is changed. |
229 virtual bool IsCrashed() const = 0; | 231 virtual bool IsCrashed() const = 0; |
230 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0; | 232 virtual void SetIsCrashed(base::TerminationStatus status, int error_code) = 0; |
231 | 233 |
232 virtual base::TerminationStatus GetCrashedStatus() const = 0; | 234 virtual base::TerminationStatus GetCrashedStatus() const = 0; |
233 | 235 |
234 // Whether the tab is in the process of being destroyed. | 236 // Whether the tab is in the process of being destroyed. |
235 virtual bool IsBeingDestroyed() const = 0; | 237 virtual bool IsBeingDestroyed() const = 0; |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 // is not resized to the given image_size. If 0 is passed, the first frame of | 436 // is not resized to the given image_size. If 0 is passed, the first frame of |
435 // the image is returned. | 437 // the image is returned. |
436 virtual int DownloadFavicon(const GURL& url, int image_size, | 438 virtual int DownloadFavicon(const GURL& url, int image_size, |
437 const FaviconDownloadCallback& callback) = 0; | 439 const FaviconDownloadCallback& callback) = 0; |
438 | 440 |
439 }; | 441 }; |
440 | 442 |
441 } // namespace content | 443 } // namespace content |
442 | 444 |
443 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 445 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |