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

Unified Diff: ios/chrome/browser/open_from_clipboard/create_clipboard_recent_content.h

Issue 1274713003: Refactor ClipboardRecentContent singleton creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comment by jif Created 5 years, 4 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/chrome/browser/DEPS ('k') | ios/chrome/browser/open_from_clipboard/create_clipboard_recent_content.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/open_from_clipboard/create_clipboard_recent_content.h
diff --git a/ios/chrome/browser/open_from_clipboard/create_clipboard_recent_content.h b/ios/chrome/browser/open_from_clipboard/create_clipboard_recent_content.h
new file mode 100644
index 0000000000000000000000000000000000000000..d70b03a89ff0c956c5e846e2679c49a1abf35d6f
--- /dev/null
+++ b/ios/chrome/browser/open_from_clipboard/create_clipboard_recent_content.h
@@ -0,0 +1,19 @@
+// 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_CHROME_BROWSER_OPEN_FROM_CLIPBOARD_CREATE_CLIPBOARD_RECENT_CONTENT_H_
+#define IOS_CHROME_BROWSER_OPEN_FROM_CLIPBOARD_CREATE_CLIPBOARD_RECENT_CONTENT_H_
+
+#include "base/memory/scoped_ptr.h"
+
+class ClipboardRecentContent;
+
+// Creates a new instance of ClipboardRecentContentIOS. The returned object
+// is fully initialized and can be registered as global singleton.
+//
+// This helper function allow the construction of ClipboardRecentContentIOS
+// from a pure C++ (ClipboardRecentContentIOS is an Objective-C++).
+scoped_ptr<ClipboardRecentContent> CreateClipboadRecentContentIOS();
+
+#endif // IOS_CHROME_BROWSER_OPEN_FROM_CLIPBOARD_CREATE_CLIPBOARD_RECENT_CONTENT_H_
« no previous file with comments | « ios/chrome/browser/DEPS ('k') | ios/chrome/browser/open_from_clipboard/create_clipboard_recent_content.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698