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