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

Unified Diff: third_party/WebKit/Source/web/TextCheckerClientImpl.h

Issue 2795113002: Move ownership of TextCheckerClientImpl to WebLocalFrameImpl (Closed)
Patch Set: Rebased Created 3 years, 8 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
Index: third_party/WebKit/Source/web/TextCheckerClientImpl.h
diff --git a/third_party/WebKit/Source/web/TextCheckerClientImpl.h b/third_party/WebKit/Source/web/TextCheckerClientImpl.h
index 11fa850186431a7c3571a2b8c55ed13854633dc2..4f36f63eefd36b1aa572dac0f2472897d368b1fb 100644
--- a/third_party/WebKit/Source/web/TextCheckerClientImpl.h
+++ b/third_party/WebKit/Source/web/TextCheckerClientImpl.h
@@ -5,18 +5,20 @@
#ifndef TextCheckerClientImpl_h
#define TextCheckerClientImpl_h
+#include "platform/heap/Handle.h"
#include "platform/text/TextCheckerClient.h"
namespace blink {
-class WebViewImpl;
+class WebLocalFrameImpl;
+class WebTextCheckClient;
// TODO(xiaochengh): Rename TextCheckerClientImpl to SpellCheckerClientImpl.
-// TODO(xiaochengh): Move ownership of this class to WebLocalFrameImpl.
-class TextCheckerClientImpl final : public TextCheckerClient {
+class TextCheckerClientImpl final
+ : public GarbageCollected<TextCheckerClientImpl>,
+ public TextCheckerClient {
public:
- TextCheckerClientImpl(WebViewImpl*);
- ~TextCheckerClientImpl() final;
+ explicit TextCheckerClientImpl(WebLocalFrameImpl*);
void checkSpellingOfString(const String&,
int* misspellingLocation,
@@ -24,8 +26,14 @@ class TextCheckerClientImpl final : public TextCheckerClient {
void requestCheckingOfString(TextCheckingRequest*) final;
void cancelAllPendingRequests() final;
+ DECLARE_TRACE();
+
private:
- WebViewImpl* m_webView;
+ WebTextCheckClient* webTextCheckClient() const;
+
+ Member<WebLocalFrameImpl> m_webLocalFrame;
+
+ DISALLOW_COPY_AND_ASSIGN(TextCheckerClientImpl);
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/SpellCheckerClientImpl.cpp ('k') | third_party/WebKit/Source/web/TextCheckerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698