summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/processes
Commit message (Collapse)AuthorAgeFilesLines
* Migrate ProcessesEventRouter to the new task managerafakhry2016-03-113-617/+549
| | | | | | | | | | | | | | This CL migrates the dependency of the ProcessesAPIs to the new task manager implementation. The API of the process info has been fixed, since processes don't have titles, instead we added a list of tasks running in that process, with their titles and optional tab IDs. BUG=525201,591581 TEST=browser_tests --gtest_filter=ProcessesApiTest.* Review URL: https://codereview.chromium.org/1584473004 Cr-Commit-Position: refs/heads/master@{#380696}
* ProcessesApiTest.Processes fails on some MSan botsafakhry2016-03-031-1/+2
| | | | | | | | | | | | I'll disabled it for now until the follow-up CL for migrating to the new task manager lands. TBR=rdevlin.cronin@chromium.org BUG=591581 Review URL: https://codereview.chromium.org/1759813003 Cr-Commit-Position: refs/heads/master@{#378923}
* Migrate ProcessesAPIs to use IDL.afakhry2016-03-025-431/+292
| | | | | | | | | | | | Converts defining the chrome.processes API from JSON to IDL. This is the first step in migrating the API to the new task manager. BUG=525201,346990 TEST=browser_tests --gtest_filter=ProcessesApiTest.* Review URL: https://codereview.chromium.org/1716403002 Cr-Commit-Position: refs/heads/master@{#378855}
* Convert Pass()→std::move() in //chrome/browser/extensionsdcheng2015-12-261-8/+11
| | | | | | | | | | | | ☃ BUG=557422 R=avi@chromium.org TBR=rdevlin.cronin@chromium.org Review URL: https://codereview.chromium.org/1549233002 Cr-Commit-Position: refs/heads/master@{#366911}
* Switch to standard integer types in chrome/browser/extensions/.avi2015-12-242-3/+7
| | | | | | | | | BUG=138542 TBR=reillyg@chromium.org Review URL: https://codereview.chromium.org/1549933002 Cr-Commit-Position: refs/heads/master@{#366840}
* Separate RenderViewHost from RenderWidgetHost, part 4: delegateavi2015-10-271-2/+0
| | | | | | | | | | | | | This makes a delegate interface between the RenderViewHost and the RenderWidgetHost, which will eventually be used for their communication. This also allows the removal of the horrible terrible no-good RenderWidgetHost::IsRenderView(). BUG=542477 TEST=all green Review URL: https://codereview.chromium.org/1411203010 Cr-Commit-Position: refs/heads/master@{#356286}
* Do not allow the extension process API to kill the browser process.kalman2015-09-224-19/+36
| | | | | | | | | BUG=534501 R=creis@chromium.org Review URL: https://codereview.chromium.org/1356193002 Cr-Commit-Position: refs/heads/master@{#350251}
* Change the new-task-manager flag so that the new implementation is enabled ↵afakhry2015-08-151-0/+4
| | | | | | | | | | | | | | | by default for all users. Unless the user explicitly specifies the desire to revert back to the old implementation using the flag, the new implementation should be enabled by default. R=thestig@chromium.org BUG=520776,471006 Review URL: https://codereview.chromium.org/1293813005 Cr-Commit-Position: refs/heads/master@{#343558}
* Final batch adding real histogram values for extension events.kalman2015-07-222-18/+20
| | | | | | | | | BUG=503402 R=rdevlin.cronin@chromium.org, asvitkine@chromium.org Review URL: https://codereview.chromium.org/1236493004 Cr-Commit-Position: refs/heads/master@{#339905}
* Set up the infrastructure for Extension event metrics.kalman2015-06-241-1/+1
| | | | | | | | | | | | | | | | | This patch adds extension_event_histogram_value.h with a value for every Extension event (scraped using the Docserver), changes the Event struct constructor to require one, then makes every caller pass in UNKNOWN. These are steps 1 and 2 in the bug. Next I will be submitting bite-sized changes to use the real histogram values. BUG=503402 R=rdevlin.cronin@chromium.org, isherman@chromium.org TBR=achuith@chromium.org, rkc@chromium.org, dewittj@chromium.org, tommi@chromium.org, msw@chromium.org Review URL: https://codereview.chromium.org/1201063002 Cr-Commit-Position: refs/heads/master@{#336003}
* chrome/browser/extensions: Remove use of MessageLoopProxy and deprecated ↵skyostil2015-06-111-7/+11
| | | | | | | | | | | | MessageLoop APIs This patch was mostly autogenerated with https://codereview.chromium.org/1010073002/. BUG=465354 Review URL: https://codereview.chromium.org/1169723004 Cr-Commit-Position: refs/heads/master@{#334029}
* Remove uses of KillProcess.rvargas2015-04-011-2/+3
| | | | | | | | BUG=417532 Review URL: https://codereview.chromium.org/1035323002 Cr-Commit-Position: refs/heads/master@{#323179}
* Reverting instrumentationsvadimt2014-10-221-5/+0
| | | | | | | | | | | | Reverting instrumentations. The bug is practically fixed, and profiler instrumentations are not necessary anymore. BUG=417106 TBR=zelidrag@chromium.org, xians@chromium.org, hans@chromium.org, plundblad@chromium.org, komatsu@chromium.org, mfoltz@chromium.org, dcheng@chromium.org, tommycli@chromium.org, erikwright@chromium.org, rpaquay@chromium.org, mkwst@chromium.org, hongbo.min@intel.com, dvh@chromium.org, tbarzic@chromium.org, vitalybuka@chromium.org, jyasskin@chromium.org Review URL: https://codereview.chromium.org/671783002 Cr-Commit-Position: refs/heads/master@{#300596}
* Standardize usage of virtual/override/final in chrome/browser/extensions/dcheng2014-10-211-19/+19
| | | | | | | | | | | | This patch was automatically generated by applying clang fixit hints generated by the plugin to the source tree. BUG=417463 TBR=mek@chromium.org Review URL: https://codereview.chromium.org/666153002 Cr-Commit-Position: refs/heads/master@{#300474}
* Instrumenting descendants of EventRouter::Observer to find out what causes ↵vadimt2014-10-081-0/+5
| | | | | | | | | | | | jankiness of ExtensionMessageFilter::OnExtensionAddListener task. See the bug and the previous checking in the bug for details. BUG=417106 Review URL: https://codereview.chromium.org/638763002 Cr-Commit-Position: refs/heads/master@{#298749}
* replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/mostynb2014-10-041-12/+12
| | | | | | | | BUG=417463 Review URL: https://codereview.chromium.org/624153002 Cr-Commit-Position: refs/heads/master@{#298134}
* Move extension_test_message_listener to extensions.lfg2014-09-191-1/+1
| | | | | | | | | | This CL is part of the refactoring of webview into extensions/, and the webview test infrastructure depends heavily on this. Webview tests will be added to extensions soon. BUG=352290 Review URL: https://codereview.chromium.org/584513003 Cr-Commit-Position: refs/heads/master@{#295665}
* Task Manager: Remove dead FPS code.thestig@chromium.org2014-06-073-10/+3
| | | | | | Review URL: https://codereview.chromium.org/319953002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275670 0039d316-1c4b-4281-b951-d872f2087c98
* Drive extension functions from ExtensionFunction::Run. Thekalman@chromium.org2014-05-032-10/+9
| | | | | | | | | | | | | | | SyncExtensionFunction and AsyncExtensionFunction derivates now expose RunSync and RunAsync respectively. New extension function implementations should just implement Run directly. BUG=365732 R=rockot@chromium.org TBR=dmazzoni@chromium.org Review URL: https://codereview.chromium.org/257333002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268033 0039d316-1c4b-4281-b951-d872f2087c98
* Use EventRouter instead of ExtensionSystem::Get->event_router()limasdf@gmail.com2014-04-181-16/+10
| | | | | | | | | | all clean-up BUG=362672 Review URL: https://codereview.chromium.org/238633009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264765 0039d316-1c4b-4281-b951-d872f2087c98
* Turn off Task Manager should not break the build on Linuxyi.shen@samsung.com2014-03-261-0/+5
| | | | | | | | | BUG=355781 R= Review URL: https://codereview.chromium.org/209353016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259468 0039d316-1c4b-4281-b951-d872f2087c98
* Move ExtensionFunctionDispatcher to extensions/browser.derat@chromium.org2014-03-151-1/+1
| | | | | | | | | | | | Adds ExtensionsBrowserClient::PermitExternalProtocolHandler. Also moves extension_function_util.h. BUG=332986 TBR=darin@chromium.org Review URL: https://codereview.chromium.org/195763018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257305 0039d316-1c4b-4281-b951-d872f2087c98
* Move extensions-related files to using //components/keyed_service.blundell@chromium.org2014-03-131-2/+2
| | | | | | | | | | | | | | | | | | | This CL removes the usage of //components/browser_context_keyed_service from: - //chrome/browser/extensions - //extensions It was constructed using the following: - move_source_file.py --already_moved - mffr.py - git cl format BUG=351704 TBR=yoz Review URL: https://codereview.chromium.org/197413002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256853 0039d316-1c4b-4281-b951-d872f2087c98
* Move ExtensionFunctionRegistry out of src/chromerockot@chromium.org2014-03-051-1/+1
| | | | | | | | | | | | | | | | This is mostly a mechanical change with the exception that ExtensionsBrowserClient has a new method for registering additional extensions functions with the registry. Chrome-dependent function registration has been moved to the ChromeExtensionsBrowserClient implementation. BUG=299187 TBR=zelidrag@chromium.org,finnur@chromium.org,nona@chromium.org,stevenjb@chromium.org,kalman@chromium.org,zork@chromium.org,dmazzoni@chromium.org for mechanical header path changes Review URL: https://codereview.chromium.org/185293017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255101 0039d316-1c4b-4281-b951-d872f2087c98
* Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get.yoz@chromium.org2014-03-052-10/+11
| | | | | | | | | | | | | Move it to extensions/browser. (Not extensions/browser/api, since it's now being used not just by API implementations.) This change is purely mechanical (some lines are more affected by clang-format than others). BUG=309909 TBR=sky@chromium.org Review URL: https://codereview.chromium.org/178193030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254999 0039d316-1c4b-4281-b951-d872f2087c98
* Disable ExtensionApiTest.Processes, it's flaky.ricow@chromium.org2014-03-041-1/+2
| | | | | | | | | BUG=346990 TBR=bradnelson@google.com Review URL: https://codereview.chromium.org/180803009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254760 0039d316-1c4b-4281-b951-d872f2087c98
* Re-enable ExtensionApiTest.Processes.bradnelson@google.com2014-03-012-3/+1
| | | | | | | | | | | | | Re-enable ExtensionApiTest.Processes which was disabled due to flake. As the task manager process list is updated only indirectly, don't assume a process will be found that matches the RenderWidgetHost's process id. BUG=https://code.google.com/p/chromium/issues/detail?id=346990 TEST=ExtensionApiTest.Processes R=nasko@chromium.org,miket@chromium.org Review URL: https://codereview.chromium.org/183813002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254285 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 253509 - ProfileKeyedAPIFactory to build instances with ↵yoz@chromium.org2014-02-271-0/+1
| | | | | | | | | | | | | | | BrowserContext instead of Profile. The build broke the first time because of a merge conflict. This also updates a few call sites that were missed earlier, and it includes profile.h where it was previously gotten transitively. BUG=309909 TBR=sky@chromium.org Review URL: https://codereview.chromium.org/181913003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253712 0039d316-1c4b-4281-b951-d872f2087c98
* Disable flaky test: ExtensionApiTest.Processeswaffles@chromium.org2014-02-261-1/+2
| | | | | | | | | BUG=346990 TBR=rsleevi@chromium.org Review URL: https://codereview.chromium.org/176923019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253529 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 253509 "Change ProfileKeyedAPIFactory to build instances ..."rch@chromium.org2014-02-261-1/+0
| | | | | | | | | | | | | | | | | | | | | http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Builder%20%28dbg%29/builds/45882/steps/compile/logs/stdio#error1 > Change ProfileKeyedAPIFactory to build instances with BrowserContext instead of Profile. > > This also updates a few call sites that were missed earlier, and it includes profile.h where it was previously gotten transitively. > > Follows https://chromiumcodereview.appspot.com/166053003/ and https://chromiumcodereview.appspot.com/174513003/ > > BUG=309909 > TBR=dtseng@chromium.org,derat@chromium.org > > Review URL: https://codereview.chromium.org/179243002 TBR=yoz@chromium.org Review URL: https://codereview.chromium.org/181913002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253528 0039d316-1c4b-4281-b951-d872f2087c98
* Change ProfileKeyedAPIFactory to build instances with BrowserContext instead ↵yoz@chromium.org2014-02-261-0/+1
| | | | | | | | | | | | | | | of Profile. This also updates a few call sites that were missed earlier, and it includes profile.h where it was previously gotten transitively. Follows https://chromiumcodereview.appspot.com/166053003/ and https://chromiumcodereview.appspot.com/174513003/ BUG=309909 TBR=dtseng@chromium.org,derat@chromium.org Review URL: https://codereview.chromium.org/179243002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253509 0039d316-1c4b-4281-b951-d872f2087c98
* Move ProfileKeyedAPI implementations to take BrowserContext in the ↵yoz@chromium.org2014-02-252-23/+26
| | | | | | | | | | | | constructor (part 2). Follows part 1: https://chromiumcodereview.appspot.com/171813010/ BUG=309909 Review URL: https://codereview.chromium.org/166053003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253187 0039d316-1c4b-4281-b951-d872f2087c98
* Add process title and nacl debug port fields to the processes api.bradnelson@google.com2014-02-224-13/+7
| | | | | | | | | | | | | Adding title and nacl debug port to the processes api to allow a nacl debugger extension to discover and label possible debugging targets. Re-enabling chrome.processes tests. BUG=328714,130138,97499,31663,345411 TEST=None Review URL: https://codereview.chromium.org/165153003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252704 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up some ifdefs around Win Aura.jam@chromium.org2014-02-041-1/+1
| | | | | | | | | BUG=330735 R=scottmg@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/136643006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248742 0039d316-1c4b-4281-b951-d872f2087c98
* Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1.yoz@chromium.org2014-01-301-1/+1
| | | | | | | | | | | | | This moves ExtensionSystem to extensions/browser. It also moves setting the channel for Features to ChromeExtensionsBrowserClient. It also removes the duplicate ExtensionSystem::GetForBrowserContext. BUG=337707 TBR=sky@chromium.org Review URL: https://codereview.chromium.org/147923005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247788 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Replace &LazyInstance::Get() with LazyInstance::Pointer().thestig@chromium.org2014-01-211-1/+1
| | | | | | | | Also replace *LazyInstance::Pointer() with LazyInstance::Get(). Review URL: https://codereview.chromium.org/140613002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246142 0039d316-1c4b-4281-b951-d872f2087c98
* Update some uses of Value in chrome/browser to use the base:: namespace.avi@chromium.org2013-12-231-1/+1
| | | | | | | | | | BUG=88666 TEST=no change TBR=ben@chromium.org Review URL: https://codereview.chromium.org/120783002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242389 0039d316-1c4b-4281-b951-d872f2087c98
* Move EventRouter to src/extensions/browserjamescook@chromium.org2013-11-212-2/+2
| | | | | | | | | | | | | | | | Now that its dependencies on Profile, ActivityLog, RuntimeAPI and WebRequestAPI have been removed it can move into the extensions module. This is part of the AppShell extensions refactoring project. BUG=316367 TEST=compiles R=yoz@chromium.org TBR=mukai@chromium.org for mechanical file move in c/b/notifications, dmazzoni@chromium.org for mechanical file move in accessibility code Review URL: https://codereview.chromium.org/78483003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236549 0039d316-1c4b-4281-b951-d872f2087c98
* Rename NOTIFICATION_RENDERER_PROCESS_HANG to ↵avi@chromium.org2013-11-091-3/+3
| | | | | | | | | | | NOTIFICATION_RENDER_WIDGET_HOST_HANG as it is being sent out by the RenderWidgetHost. BUG=none TEST=no change Review URL: https://codereview.chromium.org/64683003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234063 0039d316-1c4b-4281-b951-d872f2087c98
* Rename WebKit namespace to blink (part 4)abarth@chromium.org2013-11-071-2/+2
| | | | | | | | | | | | This CL updates all references to the WebKit namespace in chrome and components. TBR=darin@chromium.org BUG=295096 Review URL: https://codereview.chromium.org/63273002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233464 0039d316-1c4b-4281-b951-d872f2087c98
* Remove Profile dependency from ExtensionFunctionbenwells@chromium.org2013-10-282-18/+29
| | | | | | | | | | | | | This instead creates new variants of ExtensionFunction for Chrome APIs, which need Profile, and uses them for any API that needs to access Profiles. TBR=sky@chromium.org BUG=297942 Review URL: https://codereview.chromium.org/35893010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231406 0039d316-1c4b-4281-b951-d872f2087c98
* Add C++ fixture for extension settings browser testaboxhall@chromium.org2013-10-211-1/+1
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/22791012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229959 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Use std::string& instead of const char* in extension/apilimasdf@gmail.com2013-10-012-3/+4
| | | | | | | | | | TEST=compile R=yoz BUG= Review URL: https://codereview.chromium.org/25308004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226193 0039d316-1c4b-4281-b951-d872f2087c98
* content: Introduce a RenderWidgetHostIterator.sadrul@chromium.org2013-09-111-6/+7
| | | | | | | | | | | | | | | | RenderWidgetHost::GetRenderWidgetHosts() and GetAllRenderWidgetHosts() returns a list of RenderWidgetHost's. The caller can then perform some operation that leads to some of the RenderWidgetHosts in the list being destroyed, leading to reading from freed memory, when iterating over the list. So instead of sending a list, introduce RenderWidgetHostIterator, which allows safely iterating over the list of hosts. BUG=285307 R=ajwong@chromium.org, creis@chromium.org, jam@chromium.org Review URL: https://codereview.chromium.org/23453038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222591 0039d316-1c4b-4281-b951-d872f2087c98
* Remove NOTIFICATION_ON_CHILD_PROCESS_DATA_READYcaitkp@chromium.org2013-08-202-61/+12
| | | | | | | | | | | | Use callbacks instead. BUG=268984 TEST=no change TBR=darin@chromium.org Review URL: https://chromiumcodereview.appspot.com/23156004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218404 0039d316-1c4b-4281-b951-d872f2087c98
* Move processes API to dev channelsanjoy.pal@samsung.com2013-08-143-18/+11
| | | | | | | | | BUG=259490 TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/22584002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217559 0039d316-1c4b-4281-b951-d872f2087c98
* c/b/extensions: Do not use Value::Create*.DHNishi@gmail.com2013-08-141-10/+10
| | | | | | | | | | src/tools/json_schema_compiler: Do not use Value::Create*. BUG=160586 Review URL: https://chromiumcodereview.appspot.com/22885002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217444 0039d316-1c4b-4281-b951-d872f2087c98
* Move kEnableExperimentalExtensionApis switch to extensions/common/switches.cc.yoz@chromium.org2013-07-311-3/+3
| | | | | | | | | | | Remove it from a lot of API tests that don't need it anymore. BUG=162530 TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/20593003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214836 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of the message_loop header in chrome/browser/, part 5.avi@chromium.org2013-07-181-1/+1
| | | | | | | | | | BUG=260807 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/19502006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212188 0039d316-1c4b-4281-b951-d872f2087c98
* Update some includes of chrome_notification_types.hjam@chromium.org2013-07-121-1/+1
| | | | | | | | TBR=brettw Review URL: https://codereview.chromium.org/19074002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211285 0039d316-1c4b-4281-b951-d872f2087c98