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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void hide() override { } | 66 void hide() override { } |
67 void updateFromElement() override { } | 67 void updateFromElement() override { } |
68 void disconnectClient() override { } | 68 void disconnectClient() override { } |
69 }; | 69 }; |
70 | 70 |
71 class EmptyFrameScheduler : public WebFrameScheduler { | 71 class EmptyFrameScheduler : public WebFrameScheduler { |
72 public: | 72 public: |
73 void setFrameVisible(bool) override { } | 73 void setFrameVisible(bool) override { } |
74 WebTaskRunner* loadingTaskRunner() override; | 74 WebTaskRunner* loadingTaskRunner() override; |
75 WebTaskRunner* timerTaskRunner() override; | 75 WebTaskRunner* timerTaskRunner() override; |
76 void setFrameOrigin(const WebSecurityOrigin&) override { } | |
77 }; | 76 }; |
78 | 77 |
79 WebTaskRunner* EmptyFrameScheduler::loadingTaskRunner() | 78 WebTaskRunner* EmptyFrameScheduler::loadingTaskRunner() |
80 { | 79 { |
81 return Platform::current()->currentThread()->getWebTaskRunner(); | 80 return Platform::current()->currentThread()->getWebTaskRunner(); |
82 } | 81 } |
83 | 82 |
84 WebTaskRunner* EmptyFrameScheduler::timerTaskRunner() | 83 WebTaskRunner* EmptyFrameScheduler::timerTaskRunner() |
85 { | 84 { |
86 return Platform::current()->currentThread()->getWebTaskRunner(); | 85 return Platform::current()->currentThread()->getWebTaskRunner(); |
(...skipping 20 matching lines...) Expand all Loading... |
107 | 106 |
108 void EmptyChromeClient::openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) | 107 void EmptyChromeClient::openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) |
109 { | 108 { |
110 } | 109 } |
111 | 110 |
112 String EmptyChromeClient::acceptLanguages() | 111 String EmptyChromeClient::acceptLanguages() |
113 { | 112 { |
114 return String(); | 113 return String(); |
115 } | 114 } |
116 | 115 |
117 PassOwnPtr<WebFrameScheduler> EmptyChromeClient::createFrameScheduler() | 116 PassOwnPtr<WebFrameScheduler> EmptyChromeClient::createFrameScheduler(BlameConte
xt*) |
118 { | 117 { |
119 return adoptPtr(new EmptyFrameScheduler()); | 118 return adoptPtr(new EmptyFrameScheduler()); |
120 } | 119 } |
121 | 120 |
122 NavigationPolicy EmptyFrameLoaderClient::decidePolicyForNavigation(const Resourc
eRequest&, DocumentLoader*, NavigationType, NavigationPolicy, bool, bool) | 121 NavigationPolicy EmptyFrameLoaderClient::decidePolicyForNavigation(const Resourc
eRequest&, DocumentLoader*, NavigationType, NavigationPolicy, bool, bool) |
123 { | 122 { |
124 return NavigationPolicyIgnore; | 123 return NavigationPolicyIgnore; |
125 } | 124 } |
126 | 125 |
127 bool EmptyFrameLoaderClient::hasPendingNavigation() | 126 bool EmptyFrameLoaderClient::hasPendingNavigation() |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 { | 178 { |
180 return nullptr; | 179 return nullptr; |
181 } | 180 } |
182 | 181 |
183 PassOwnPtr<WebApplicationCacheHost> EmptyFrameLoaderClient::createApplicationCac
heHost(WebApplicationCacheHostClient*) | 182 PassOwnPtr<WebApplicationCacheHost> EmptyFrameLoaderClient::createApplicationCac
heHost(WebApplicationCacheHostClient*) |
184 { | 183 { |
185 return nullptr; | 184 return nullptr; |
186 } | 185 } |
187 | 186 |
188 } // namespace blink | 187 } // namespace blink |
OLD | NEW |