| Index: components/offline_pages/client_policy_controller.h
|
| diff --git a/components/offline_pages/client_policy_controller.h b/components/offline_pages/client_policy_controller.h
|
| index 2d89cc923d5a36555eaba0c2f1108abcbee19e2b..8e2d21a4268cf48a22013575a9d3e185f787535e 100644
|
| --- a/components/offline_pages/client_policy_controller.h
|
| +++ b/components/offline_pages/client_policy_controller.h
|
| @@ -35,6 +35,9 @@ class ClientPolicyController {
|
| // Get the client policy for |name_space|.
|
| const OfflinePageClientPolicy& GetPolicy(const std::string& name_space) const;
|
|
|
| + // Returns a list of all known namespaces.
|
| + std::vector<std::string> GetAllNamespaces() const;
|
| +
|
| // Returns whether pages for |name_space| should be removed on cache reset.
|
| bool IsRemovedOnCacheReset(const std::string& name_space) const;
|
|
|
| @@ -53,6 +56,9 @@ class ClientPolicyController {
|
| bool IsRestrictedToOriginalTab(const std::string& name_space) const;
|
| const std::vector<std::string>& GetNamespacesRestrictedToOriginalTab() const;
|
|
|
| + void AddPolicyForTest(const std::string& name_space,
|
| + const OfflinePageClientPolicyBuilder& builder);
|
| +
|
| private:
|
| // The map from name_space to a client policy. Will be generated
|
| // as pre-defined values for now.
|
|
|