commit | ddf2a4e4ae9966ceaaf7854226b8fcd007bfe953 | [log] [tgz] |
---|---|---|
author | Shubhie Panicker <[email protected]> | Tue Mar 06 00:09:06 2018 |
committer | Commit Bot <[email protected]> | Tue Mar 06 00:09:06 2018 |
tree | 04d6a95e74eb37064a30a07f398d22d8c1868f3d | |
parent | e5bb9cb475240029fd7600472b6d4a9f18d70ba2 [diff] [blame] |
Attempt #2: Expose wasDiscarded after tab discard. This is needed for Lifecycle API, see: https://github.com/WICG/web-lifecycle WasDiscarded is set on RequestNavigationParams on browser side and passed into to WebURLRequest on renderer side. And later set on the Document in DocumentLoader::CommitNavigation. For detailed discussion, see (internal) thread: https://groups.google.com/a/google.com/d/msg/chrome-lifecycle-apis/e0vsRLUISBE/t_BKYGcwAQAJ Change-Id: I160628db6ba0a01f7b5281c78d7c2df40a28611f BUG: chromium:816454 Change-Id: I160628db6ba0a01f7b5281c78d7c2df40a28611f Reviewed-on: https://chromium-review.googlesource.com/912488 Commit-Queue: Shubhie Panicker <[email protected]> Reviewed-by: Charlie Reis <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Reviewed-by: Alex Moshchuk <[email protected]> Reviewed-by: Camille Lamy <[email protected]> Reviewed-by: Jochen Eisinger <[email protected]> Cr-Commit-Position: refs/heads/master@{#540997}
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h index 27aa4e7..6095c92 100644 --- a/content/browser/web_contents/web_contents_impl.h +++ b/content/browser/web_contents/web_contents_impl.h
@@ -343,6 +343,7 @@ uint64_t GetUploadSize() const override; uint64_t GetUploadPosition() const override; const std::string& GetEncoding() const override; + void SetWasDiscarded(bool was_discarded) override; void IncrementCapturerCount(const gfx::Size& capture_size) override; void DecrementCapturerCount() override; bool IsBeingCaptured() const override;