1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IOS_WEB_PUBLIC_BROWSING_DATA_PARTITION_CLIENT_H_
6 #define IOS_WEB_PUBLIC_BROWSING_DATA_PARTITION_CLIENT_H_
8 #include "base/macros.h"
12 class BrowsingDataPartitionClient
;
14 // Setter and getter for the client.
15 void SetBrowsingDataPartitionClient(BrowsingDataPartitionClient
* client
);
16 BrowsingDataPartitionClient
* GetBrowsingDataPartitionClient();
18 // Interface that the embedder of the web layer implements. Informs embedders
19 // when the BrowsingDataPartition is synchronized.
20 class BrowsingDataPartitionClient
{
22 BrowsingDataPartitionClient();
23 virtual ~BrowsingDataPartitionClient();
25 // Called when web::BrowsingDataPartition becomes synchronized.
26 virtual void DidBecomeSynchronized() const {}
29 DISALLOW_COPY_AND_ASSIGN(BrowsingDataPartitionClient
);
34 #endif // IOS_NET_COOKIES_COOKIE_STORE_IOS_CLIENT_H_