OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
6 #define EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 6 #define EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
7 | 7 |
8 #include "extensions/browser/api/capture_web_contents_function.h" | 8 #include "extensions/browser/api/capture_web_contents_function.h" |
9 #include "extensions/browser/api/execute_code_function.h" | 9 #include "extensions/browser/api/execute_code_function.h" |
10 #include "extensions/browser/extension_function.h" | 10 #include "extensions/browser/extension_function.h" |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 protected: | 229 protected: |
230 virtual ~WebViewInternalStopFindingFunction(); | 230 virtual ~WebViewInternalStopFindingFunction(); |
231 | 231 |
232 private: | 232 private: |
233 // WebViewInternalExtensionFunction implementation. | 233 // WebViewInternalExtensionFunction implementation. |
234 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; | 234 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; |
235 | 235 |
236 DISALLOW_COPY_AND_ASSIGN(WebViewInternalStopFindingFunction); | 236 DISALLOW_COPY_AND_ASSIGN(WebViewInternalStopFindingFunction); |
237 }; | 237 }; |
238 | 238 |
| 239 class WebViewInternalLoadDataWithBaseUrlFunction |
| 240 : public WebViewInternalExtensionFunction { |
| 241 public: |
| 242 DECLARE_EXTENSION_FUNCTION("webViewInternal.loadDataWithBaseUrl", |
| 243 WEBVIEWINTERNAL_LOADDATAWITHBASEURL); |
| 244 |
| 245 WebViewInternalLoadDataWithBaseUrlFunction(); |
| 246 |
| 247 protected: |
| 248 virtual ~WebViewInternalLoadDataWithBaseUrlFunction(); |
| 249 |
| 250 private: |
| 251 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; |
| 252 |
| 253 DISALLOW_COPY_AND_ASSIGN(WebViewInternalLoadDataWithBaseUrlFunction); |
| 254 }; |
| 255 |
239 class WebViewInternalGoFunction : public WebViewInternalExtensionFunction { | 256 class WebViewInternalGoFunction : public WebViewInternalExtensionFunction { |
240 public: | 257 public: |
241 DECLARE_EXTENSION_FUNCTION("webViewInternal.go", WEBVIEWINTERNAL_GO); | 258 DECLARE_EXTENSION_FUNCTION("webViewInternal.go", WEBVIEWINTERNAL_GO); |
242 | 259 |
243 WebViewInternalGoFunction(); | 260 WebViewInternalGoFunction(); |
244 | 261 |
245 protected: | 262 protected: |
246 virtual ~WebViewInternalGoFunction(); | 263 virtual ~WebViewInternalGoFunction(); |
247 | 264 |
248 private: | 265 private: |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 uint32 remove_mask_; | 379 uint32 remove_mask_; |
363 // Tracks any data related or parse errors. | 380 // Tracks any data related or parse errors. |
364 bool bad_message_; | 381 bool bad_message_; |
365 | 382 |
366 DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction); | 383 DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction); |
367 }; | 384 }; |
368 | 385 |
369 } // namespace extensions | 386 } // namespace extensions |
370 | 387 |
371 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 388 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
OLD | NEW |