Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ios / web / public / browsing_data_partition_client.h
blob4113add34a2f8238669718c4a1ee5f4c2866d32a
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"
10 namespace web {
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 {
21 public:
22 BrowsingDataPartitionClient();
23 virtual ~BrowsingDataPartitionClient();
25 // Called when web::BrowsingDataPartition becomes synchronized.
26 virtual void DidBecomeSynchronized() const {}
28 private:
29 DISALLOW_COPY_AND_ASSIGN(BrowsingDataPartitionClient);
32 } // namespace web
34 #endif // IOS_NET_COOKIES_COOKIE_STORE_IOS_CLIENT_H_