Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1190)

Unified Diff: content/browser/frame_host/navigation_handle_impl.h

Issue 2025683003: First experimental implementation of the Clear-Site-Data header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix URL in comments, remove accidental change. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/navigation_handle_impl.h
diff --git a/content/browser/frame_host/navigation_handle_impl.h b/content/browser/frame_host/navigation_handle_impl.h
index 264bffa5289c14ca41f7bd867563bdfefd1c26a4..8d0df37bd8c4df56eb9da55c9290fd5055d78170 100644
--- a/content/browser/frame_host/navigation_handle_impl.h
+++ b/content/browser/frame_host/navigation_handle_impl.h
@@ -9,6 +9,8 @@
#include <stddef.h>
+#include <memory>
+
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -25,6 +27,7 @@ struct FrameHostMsg_DidCommitProvisionalLoad_Params;
namespace content {
+class ClearSiteDataHeaderObserver;
class NavigatorDelegate;
class ResourceRequestBodyImpl;
@@ -306,6 +309,9 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
// A list of Throttles registered for this navigation.
ScopedVector<NavigationThrottle> throttles_;
+ // Handler of the experiment Clear-Site-Data header.
+ std::unique_ptr<ClearSiteDataHeaderObserver> clear_site_data_header_observer_;
nasko 2016/07/28 17:30:31 This doesn't seem correct. WebContentsObservers sh
msramek 2016/08/01 16:03:19 I agree that this is weird here. Let me summarize
nasko 2016/08/03 20:53:13 Hmm, why do we need UI for this? It is part of the
msramek 2016/08/04 19:08:38 Thanks a lot for your feedback in the doc, Nasko!
+
// The index of the next throttle to check.
size_t next_index_;

Powered by Google App Engine
This is Rietveld 408576698