OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef IOS_WEB_PUBLIC_BROWSING_DATA_PARTITION_CLIENT_H_ |
| 6 #define IOS_WEB_PUBLIC_BROWSING_DATA_PARTITION_CLIENT_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 |
| 10 namespace web { |
| 11 |
| 12 class BrowsingDataPartitionClient; |
| 13 |
| 14 // Setter and getter for the client. |
| 15 void SetBrowsingDataPartitionClient(BrowsingDataPartitionClient* client); |
| 16 BrowsingDataPartitionClient* GetBrowsingDataPartitionClient(); |
| 17 |
| 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(); |
| 24 |
| 25 // Called when web::BrowsingDataPartition becomes synchronized. |
| 26 virtual void DidBecomeSynchronized() const {} |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(BrowsingDataPartitionClient); |
| 30 }; |
| 31 |
| 32 } // namespace web |
| 33 |
| 34 #endif // IOS_NET_COOKIES_COOKIE_STORE_IOS_CLIENT_H_ |
OLD | NEW |