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

Unified Diff: ios/web/public/browsing_data_partition_client.h

Issue 1247143002: Adding BrowsingDataPartitionClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: y Created 5 years, 5 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
« no previous file with comments | « ios/web/ios_web.gyp ('k') | ios/web/public/browsing_data_partition_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/browsing_data_partition_client.h
diff --git a/ios/web/public/browsing_data_partition_client.h b/ios/web/public/browsing_data_partition_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..4113add34a2f8238669718c4a1ee5f4c2866d32a
--- /dev/null
+++ b/ios/web/public/browsing_data_partition_client.h
@@ -0,0 +1,34 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_PUBLIC_BROWSING_DATA_PARTITION_CLIENT_H_
+#define IOS_WEB_PUBLIC_BROWSING_DATA_PARTITION_CLIENT_H_
+
+#include "base/macros.h"
+
+namespace web {
+
+class BrowsingDataPartitionClient;
+
+// Setter and getter for the client.
+void SetBrowsingDataPartitionClient(BrowsingDataPartitionClient* client);
+BrowsingDataPartitionClient* GetBrowsingDataPartitionClient();
+
+// Interface that the embedder of the web layer implements. Informs embedders
+// when the BrowsingDataPartition is synchronized.
+class BrowsingDataPartitionClient {
+ public:
+ BrowsingDataPartitionClient();
+ virtual ~BrowsingDataPartitionClient();
+
+ // Called when web::BrowsingDataPartition becomes synchronized.
+ virtual void DidBecomeSynchronized() const {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(BrowsingDataPartitionClient);
+};
+
+} // namespace web
+
+#endif // IOS_NET_COOKIES_COOKIE_STORE_IOS_CLIENT_H_
« no previous file with comments | « ios/web/ios_web.gyp ('k') | ios/web/public/browsing_data_partition_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698