Index: components/open_from_clipboard/clipboard_recent_content_ios.h |
diff --git a/components/open_from_clipboard/clipboard_recent_content_ios.h b/components/open_from_clipboard/clipboard_recent_content_ios.h |
index d4b7d7ec831d06bd80e46dea4e7c04f23f0e2080..beb90cc81827a4c951e6d5509d45e2355abc4bd1 100644 |
--- a/components/open_from_clipboard/clipboard_recent_content_ios.h |
+++ b/components/open_from_clipboard/clipboard_recent_content_ios.h |
@@ -14,6 +14,7 @@ |
@class NSDate; |
@class NSUserDefaults; |
@class ApplicationDidBecomeActiveNotificationListenerBridge; |
+@class ClipboardRecentContentIOSImpl; |
class ClipboardRecentContentIOSTest; |
@@ -30,17 +31,6 @@ class ClipboardRecentContentIOS : public ClipboardRecentContent { |
NSUserDefaults* group_user_defaults); |
~ClipboardRecentContentIOS() override; |
- // If the content of the pasteboard has changed, updates the change count, |
- // change date, and md5 of the latest pasteboard entry if necessary. |
- void UpdateIfNeeded(); |
- |
- // Returns whether the pasteboard changed since the last time a pasteboard |
- // change was detected. |
- bool HasPasteboardChanged() const; |
- |
- // Loads information from the user defaults about the latest pasteboard entry. |
- void LoadFromUserDefaults(); |
- |
// ClipboardRecentContent implementation. |
bool GetRecentURLFromClipboard(GURL* url) override; |
base::TimeDelta GetClipboardContentAge() const override; |
@@ -56,23 +46,11 @@ class ClipboardRecentContentIOS : public ClipboardRecentContent { |
// Saves information to the user defaults about the latest pasteboard entry. |
void SaveToUserDefaults(); |
- // Returns the URL contained in the clipboard (if any). |
- GURL URLFromPasteboard(); |
+ // Set estimation of the date when the pasteboard changed. |
+ void SetLastPasteboardChangeDate(NSDate* date); |
- // Contains the URL scheme opening the app. May be empty. |
- std::string application_scheme_; |
- // The pasteboard's change count. Increases everytime the pasteboard changes. |
- NSInteger last_pasteboard_change_count_; |
- // Estimation of the date when the pasteboard changed. |
- base::scoped_nsobject<NSDate> last_pasteboard_change_date_; |
- // MD5 hash of the last registered pasteboard entry. |
- base::scoped_nsobject<NSData> last_pasteboard_entry_md5_; |
- // Bridge to receive notifications when the application becomes active. |
- base::scoped_nsobject<ApplicationDidBecomeActiveNotificationListenerBridge> |
- notification_bridge_; |
- // The user defaults from the app group used to optimize the pasteboard change |
- // detection. |
- base::scoped_nsobject<NSUserDefaults> shared_user_defaults_; |
+ // The implementation instance. |
+ base::scoped_nsobject<ClipboardRecentContentIOSImpl> implementation; |
jif
2017/03/29 14:17:55
s/implementation/implementation_/
lody
2017/03/30 13:36:33
Done.
|
DISALLOW_COPY_AND_ASSIGN(ClipboardRecentContentIOS); |
}; |