OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> |
3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved. |
4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 17 matching lines...) Expand all Loading... | |
28 #include "config.h" | 28 #include "config.h" |
29 #include "core/loader/EmptyClients.h" | 29 #include "core/loader/EmptyClients.h" |
30 | 30 |
31 #include "core/html/HTMLFormElement.h" | 31 #include "core/html/HTMLFormElement.h" |
32 #include "core/loader/DocumentLoader.h" | 32 #include "core/loader/DocumentLoader.h" |
33 #include "core/loader/FormState.h" | 33 #include "core/loader/FormState.h" |
34 #include "core/page/Frame.h" | 34 #include "core/page/Frame.h" |
35 #include "core/platform/ColorChooser.h" | 35 #include "core/platform/ColorChooser.h" |
36 #include "core/platform/DateTimeChooser.h" | 36 #include "core/platform/DateTimeChooser.h" |
37 #include "platform/FileChooser.h" | 37 #include "platform/FileChooser.h" |
38 #include "public/platform/WebServiceWorkerProvider.h" | |
38 | 39 |
39 namespace WebCore { | 40 namespace WebCore { |
40 | 41 |
41 void fillWithEmptyClients(Page::PageClients& pageClients) | 42 void fillWithEmptyClients(Page::PageClients& pageClients) |
42 { | 43 { |
43 static ChromeClient* dummyChromeClient = adoptPtr(new EmptyChromeClient).lea kPtr(); | 44 static ChromeClient* dummyChromeClient = adoptPtr(new EmptyChromeClient).lea kPtr(); |
44 pageClients.chromeClient = dummyChromeClient; | 45 pageClients.chromeClient = dummyChromeClient; |
45 | 46 |
46 static ContextMenuClient* dummyContextMenuClient = adoptPtr(new EmptyContext MenuClient).leakPtr(); | 47 static ContextMenuClient* dummyContextMenuClient = adoptPtr(new EmptyContext MenuClient).leakPtr(); |
47 pageClients.contextMenuClient = dummyContextMenuClient; | 48 pageClients.contextMenuClient = dummyContextMenuClient; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
133 } | 134 } |
134 | 135 |
135 void EmptyEditorClient::registerRedoStep(PassRefPtr<UndoStep>) | 136 void EmptyEditorClient::registerRedoStep(PassRefPtr<UndoStep>) |
136 { | 137 { |
137 } | 138 } |
138 | 139 |
139 void EmptyFrameLoaderClient::didRequestAutocomplete(PassRefPtr<FormState>) | 140 void EmptyFrameLoaderClient::didRequestAutocomplete(PassRefPtr<FormState>) |
140 { | 141 { |
141 } | 142 } |
142 | 143 |
144 PassOwnPtr<WebKit::WebServiceWorkerProvider> EmptyFrameLoaderClient::createServi ceWorkerProvider(PassOwnPtr<WebKit::WebServiceWorkerProviderClient>) | |
abarth-chromium
2013/10/11 18:08:14
We probably avoided a leak in this case too... Do
alecflett
2013/10/11 18:52:23
Yes, I think that's reasonable.
| |
145 { | |
146 return nullptr; | |
143 } | 147 } |
148 | |
149 } | |
OLD | NEW |