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

Unified Diff: components/offline_pages/core/client_policy_controller.h

Issue 2835193005: Offline Pages - Policy cleanup (Closed)
Patch Set: Fix typo Created 3 years, 8 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: components/offline_pages/core/client_policy_controller.h
diff --git a/components/offline_pages/core/client_policy_controller.h b/components/offline_pages/core/client_policy_controller.h
index 5e5cd21467a6901c41f4bdebd7e6949207cadeb6..25b9a31d7011fbef6b36267085b8f23aaf7764e9 100644
--- a/components/offline_pages/core/client_policy_controller.h
+++ b/components/offline_pages/core/client_policy_controller.h
@@ -56,6 +56,10 @@ class ClientPolicyController {
bool IsRestrictedToOriginalTab(const std::string& name_space) const;
const std::vector<std::string>& GetNamespacesRestrictedToOriginalTab() const;
+ bool IsDisabledWhenPrefetchDisabled(const std::string& name_space) const;
+ const std::vector<std::string>& GetNamespacesDisabledWhenPrefetchDisabled()
+ const;
+
void AddPolicyForTest(const std::string& name_space,
const OfflinePageClientPolicyBuilder& builder);
@@ -68,6 +72,8 @@ class ClientPolicyController {
mutable std::unique_ptr<std::vector<std::string>> download_namespace_cache_;
mutable std::unique_ptr<std::vector<std::string>> recent_tab_namespace_cache_;
mutable std::unique_ptr<std::vector<std::string>> show_in_original_tab_cache_;
+ mutable std::unique_ptr<std::vector<std::string>>
+ disabled_when_prefetch_disabled_cache_;
DISALLOW_COPY_AND_ASSIGN(ClientPolicyController);
};

Powered by Google App Engine
This is Rietveld 408576698