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

Unified Diff: third_party/WebKit/Source/modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock.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
Index: third_party/WebKit/Source/modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock.h
diff --git a/third_party/WebKit/Source/modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock.h b/third_party/WebKit/Source/modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock.h
index c3fed5205e99141e316c306490a16d76f2fc54d0..e8635461cd0ceed5622f154c1d12b4665c148fb9 100644
--- a/third_party/WebKit/Source/modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock.h
+++ b/third_party/WebKit/Source/modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock.h
@@ -6,6 +6,7 @@
#define NavigatorContentUtilsClientMock_h
#include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h"
+#include "platform/heap/Handle.h"
#include "wtf/HashSet.h"
#include "wtf/text/WTFString.h"
@@ -16,7 +17,11 @@ class KURL;
// Provides a mock object for the navigatorcontentutils client.
class NavigatorContentUtilsClientMock final : public NavigatorContentUtilsClient {
public:
- NavigatorContentUtilsClientMock() { }
+ static PassOwnPtrWillBeRawPtr<NavigatorContentUtilsClientMock> create()
+ {
+ return adoptPtrWillBeNoop(new NavigatorContentUtilsClientMock);
+ }
+
~NavigatorContentUtilsClientMock() override { }
virtual void registerProtocolHandler(const String& scheme, const KURL&, const String& title);
@@ -25,6 +30,8 @@ public:
virtual void unregisterProtocolHandler(const String& scheme, const KURL&);
private:
+ NavigatorContentUtilsClientMock() { }
+
typedef struct {
String scheme;
KURL url;

Powered by Google App Engine
This is Rietveld 408576698