OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ | 5 #ifndef WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ |
6 #define WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ | 6 #define WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 const WebKit::WebString& file_path); | 122 const WebKit::WebString& file_path); |
123 | 123 |
124 // Unregisters URLs so they are no longer mocked. | 124 // Unregisters URLs so they are no longer mocked. |
125 void UnregisterMockedURL(const WebKit::WebURL& url); | 125 void UnregisterMockedURL(const WebKit::WebURL& url); |
126 void UnregisterAllMockedURLs(); | 126 void UnregisterAllMockedURLs(); |
127 | 127 |
128 // Causes all pending asynchronous requests to be served. When this method | 128 // Causes all pending asynchronous requests to be served. When this method |
129 // returns all the pending requests have been processed. | 129 // returns all the pending requests have been processed. |
130 void ServeAsynchronousMockedRequests(); | 130 void ServeAsynchronousMockedRequests(); |
131 | 131 |
| 132 // Returns the last request that handled by |ServeAsynchronousMockedRequests()|. |
| 133 WebKit::WebURLRequest GetLastHandledAsynchronousMockedRequest(); |
| 134 |
132 // Wrappers to minimize dependecy. | 135 // Wrappers to minimize dependecy. |
133 | 136 |
134 // -------- Debugging | 137 // -------- Debugging |
135 bool BeingDebugged(); | 138 bool BeingDebugged(); |
136 | 139 |
137 // -------- Message loop and task | 140 // -------- Message loop and task |
138 | 141 |
139 // A wrapper for Chromium's Task class. | 142 // A wrapper for Chromium's Task class. |
140 // The lifecycle is managed by webkit_support thus | 143 // The lifecycle is managed by webkit_support thus |
141 // You shouldn't delete the object. | 144 // You shouldn't delete the object. |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 260 |
258 void EnableWebCoreLogChannels(const std::string& channels); | 261 void EnableWebCoreLogChannels(const std::string& channels); |
259 | 262 |
260 // - Gamepad | 263 // - Gamepad |
261 | 264 |
262 void SetGamepadData(const WebKit::WebGamepads& pads); | 265 void SetGamepadData(const WebKit::WebGamepads& pads); |
263 | 266 |
264 } // namespace webkit_support | 267 } // namespace webkit_support |
265 | 268 |
266 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ | 269 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ |
OLD | NEW |