Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: chrome/browser/extensions/api/web_view/web_view_internal_api.h

Issue 538063003: Move execute_code_function to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn build Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/execute_code_function.h"
9 #include "chrome/browser/guest_view/web_view/web_view_find_helper.h"
10 #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"
11 #include "extensions/browser/extension_function.h" 10 #include "extensions/browser/extension_function.h"
12 #include "extensions/browser/guest_view/web_view/web_view_guest.h" 11 #include "extensions/browser/guest_view/web_view/web_view_guest.h"
13 12
14 // WARNING: WebViewInternal could be loaded in an unblessed context, thus any 13 // WARNING: WebViewInternal could be loaded in an unblessed context, thus any
15 // new APIs must extend WebViewInternalExtensionFunction or 14 // new APIs must extend WebViewInternalExtensionFunction or
16 // WebViewInternalExecuteCodeFunction which do a process ID check to prevent 15 // WebViewInternalExecuteCodeFunction which do a process ID check to prevent
17 // abuse by normal renderer processes. 16 // abuse by normal renderer processes.
18 // TODO(guohui): refactor WebViewInternalExecuteCodeFunction to also extend 17 // TODO(guohui): refactor WebViewInternalExecuteCodeFunction to also extend
19 // WebViewInternalExtensionFunction. 18 // WebViewInternalExtensionFunction.
20 namespace extensions { 19 namespace extensions {
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 private: 433 private:
435 // WebViewInternalExtensionFunction implementation. 434 // WebViewInternalExtensionFunction implementation.
436 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; 435 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
437 436
438 DISALLOW_COPY_AND_ASSIGN(WebViewInternalTerminateFunction); 437 DISALLOW_COPY_AND_ASSIGN(WebViewInternalTerminateFunction);
439 }; 438 };
440 439
441 } // namespace extensions 440 } // namespace extensions
442 441
443 #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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_constants.cc ('k') | chrome/browser/extensions/api/web_view/web_view_internal_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698