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

Unified Diff: third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.h

Issue 1441083002: Oilpan: move NavigatorContentUtilsClients to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add back non-Oilpan USING_FAST_MALLOC() usage for NavigatorContentUtilsClient Created 5 years, 1 month 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 | « no previous file | third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.h
diff --git a/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.h b/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.h
index bb0979658aa97a402fdd763f67c6ede674670541..96bf9ba4d0f28a8a4bc63af1bbeeb2b71738ebbb 100644
--- a/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.h
+++ b/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.h
@@ -53,20 +53,25 @@ public:
static String isProtocolHandlerRegistered(Navigator&, const String& scheme, const String& url, ExceptionState&);
static void unregisterProtocolHandler(Navigator&, const String& scheme, const String& url, ExceptionState&);
- static PassOwnPtrWillBeRawPtr<NavigatorContentUtils> create(PassOwnPtr<NavigatorContentUtilsClient>);
+ static PassOwnPtrWillBeRawPtr<NavigatorContentUtils> create(PassOwnPtrWillBeRawPtr<NavigatorContentUtilsClient>);
- DEFINE_INLINE_VIRTUAL_TRACE() { WillBeHeapSupplement<LocalFrame>::trace(visitor); }
+ DEFINE_INLINE_VIRTUAL_TRACE()
+ {
+ visitor->trace(m_client);
+ WillBeHeapSupplement<LocalFrame>::trace(visitor);
+ }
- void setClientForTest(PassOwnPtr<NavigatorContentUtilsClient> client) { m_client = client; }
+ void setClientForTest(PassOwnPtrWillBeRawPtr<NavigatorContentUtilsClient> client) { m_client = client; }
private:
- explicit NavigatorContentUtils(PassOwnPtr<NavigatorContentUtilsClient> client)
+ explicit NavigatorContentUtils(PassOwnPtrWillBeRawPtr<NavigatorContentUtilsClient> client)
: m_client(client)
- { }
+ {
+ }
NavigatorContentUtilsClient* client() { return m_client.get(); }
- OwnPtr<NavigatorContentUtilsClient> m_client;
+ OwnPtrWillBeMember<NavigatorContentUtilsClient> m_client;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698