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 CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
7 | 7 |
8 #include "chrome/browser/extensions/api/capture_web_contents_function.h" | 8 #include "chrome/browser/extensions/api/capture_web_contents_function.h" |
9 #include "chrome/browser/extensions/api/execute_code_function.h" | 9 #include "chrome/browser/extensions/api/execute_code_function.h" |
10 #include "extensions/browser/guest_view/web_view/web_view_find_helper.h" | 10 #include "chrome/browser/guest_view/web_view/web_view_find_helper.h" |
11 #include "extensions/browser/guest_view/web_view/web_view_guest.h" | 11 #include "chrome/browser/guest_view/web_view/web_view_guest.h" |
12 | 12 |
13 // WARNING: WebViewInternal could be loaded in an unblessed context, thus any | 13 // WARNING: WebViewInternal could be loaded in an unblessed context, thus any |
14 // new APIs must extend WebViewInternalExtensionFunction or | 14 // new APIs must extend WebViewInternalExtensionFunction or |
15 // WebViewInternalExecuteCodeFunction which do a process ID check to prevent | 15 // WebViewInternalExecuteCodeFunction which do a process ID check to prevent |
16 // abuse by normal renderer processes. | 16 // abuse by normal renderer processes. |
17 // TODO(guohui): refactor WebViewInternalExecuteCodeFunction to also extend | 17 // TODO(guohui): refactor WebViewInternalExecuteCodeFunction to also extend |
18 // WebViewInternalExtensionFunction. | 18 // WebViewInternalExtensionFunction. |
19 namespace extensions { | 19 namespace extensions { |
20 | 20 |
21 // An abstract base class for async webview APIs. It does a process ID check | 21 // An abstract base class for async webview APIs. It does a process ID check |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 private: | 433 private: |
434 // WebViewInternalExtensionFunction implementation. | 434 // WebViewInternalExtensionFunction implementation. |
435 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; | 435 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; |
436 | 436 |
437 DISALLOW_COPY_AND_ASSIGN(WebViewInternalTerminateFunction); | 437 DISALLOW_COPY_AND_ASSIGN(WebViewInternalTerminateFunction); |
438 }; | 438 }; |
439 | 439 |
440 } // namespace extensions | 440 } // namespace extensions |
441 | 441 |
442 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ | 442 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ |
OLD | NEW |