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 29 matching lines...) Expand all Loading... |
40 #include "public/platform/WebApplicationCacheHost.h" | 40 #include "public/platform/WebApplicationCacheHost.h" |
41 #include "public/platform/WebMediaPlayer.h" | 41 #include "public/platform/WebMediaPlayer.h" |
42 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" | 42 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" |
43 #include "public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h
" | 43 #include "public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h
" |
44 #include "wtf/PtrUtil.h" | 44 #include "wtf/PtrUtil.h" |
45 #include <memory> | 45 #include <memory> |
46 | 46 |
47 namespace blink { | 47 namespace blink { |
48 | 48 |
49 void fillWithEmptyClients(Page::PageClients& pageClients) { | 49 void fillWithEmptyClients(Page::PageClients& pageClients) { |
| 50 ALLOW_UNSAFE_SINGLETON() |
50 DEFINE_STATIC_LOCAL(ChromeClient, dummyChromeClient, | 51 DEFINE_STATIC_LOCAL(ChromeClient, dummyChromeClient, |
51 (EmptyChromeClient::create())); | 52 (EmptyChromeClient::create())); |
52 pageClients.chromeClient = &dummyChromeClient; | 53 pageClients.chromeClient = &dummyChromeClient; |
53 | 54 |
54 DEFINE_STATIC_LOCAL(EmptyContextMenuClient, dummyContextMenuClient, ()); | 55 DEFINE_STATIC_LOCAL(EmptyContextMenuClient, dummyContextMenuClient, ()); |
55 pageClients.contextMenuClient = &dummyContextMenuClient; | 56 pageClients.contextMenuClient = &dummyContextMenuClient; |
56 | 57 |
57 DEFINE_STATIC_LOCAL(EmptyEditorClient, dummyEditorClient, ()); | 58 DEFINE_STATIC_LOCAL(EmptyEditorClient, dummyEditorClient, ()); |
58 pageClients.editorClient = &dummyEditorClient; | 59 pageClients.editorClient = &dummyEditorClient; |
59 | 60 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 193 |
193 std::unique_ptr<WebApplicationCacheHost> | 194 std::unique_ptr<WebApplicationCacheHost> |
194 EmptyFrameLoaderClient::createApplicationCacheHost( | 195 EmptyFrameLoaderClient::createApplicationCacheHost( |
195 WebApplicationCacheHostClient*) { | 196 WebApplicationCacheHostClient*) { |
196 return nullptr; | 197 return nullptr; |
197 } | 198 } |
198 | 199 |
199 EmptyRemoteFrameClient::EmptyRemoteFrameClient() = default; | 200 EmptyRemoteFrameClient::EmptyRemoteFrameClient() = default; |
200 | 201 |
201 } // namespace blink | 202 } // namespace blink |
OLD | NEW |