0
Commit Graph

28 Commits

Author SHA1 Message Date
davidben@chromium.org
d5072a821b Check BrowsingInstance before swapping prerenders.
Even if a WebContents does not have an opener, if there is another WebContents
in the BrowsingInstance, swapping processes can break pages which expect script
access.

BUG=118294

Review URL: https://codereview.chromium.org/257083002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270581 0039d316-1c4b-4281-b951-d872f2087c98
2014-05-15 05:50:18 +00:00
rsleevi@chromium.org
fc72bb18b1 Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*"
Linux fixes

BUG=110610
TBR=darin

Review URL: https://chromiumcodereview.appspot.com/16294003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203624 0039d316-1c4b-4281-b951-d872f2087c98
2013-06-02 21:13:46 +00:00
jam@chromium.org
464883218e Move remaining files in content\browser to the content namespace.
Review URL: https://codereview.chromium.org/11340029

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164828 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-30 03:22:20 +00:00
nasko@chromium.org
77ab1731f4 Rename GetSite in SiteInstance to GetSiteURL.
This rename is in preparation of adding a GetSite method, which will return a structure instead of GURL.

BUG=145500


Review URL: https://chromiumcodereview.appspot.com/11000027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159263 0039d316-1c4b-4281-b951-d872f2087c98
2012-09-28 15:34:59 +00:00
creis@chromium.org
41fb79a5c9 Move process-per-site logic from BrowsingInstance to RenderProcessHost.
This avoids sharing SiteInstances across different BrowsingInstances.

BUG=11629
BUG=131676
TEST=See repro steps in http://crbug.com/131676.


Review URL: https://chromiumcodereview.appspot.com/10575014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144911 0039d316-1c4b-4281-b951-d872f2087c98
2012-06-29 16:34:33 +00:00
jam@chromium.org
863f70aa8b Rename WebUIFactory to WebUIControllerFactory since that's what it creates now.
I've removed EmptyWebUIFactory, since that doesn't fit in well with Content API now. There were only a few places in the code that called it, and handling NULL wasn't much work.

BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9288074

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119341 0039d316-1c4b-4281-b951-d872f2087c98
2012-01-27 02:05:50 +00:00
fischman@chromium.org
67f92bc3e4 Convert all remaining explicit LeakyLazyInstanceTraits users to ::Leaky
and hide LeakyLazyInstanceTraits in base::internal to discourage cargo-culting
new users.

BUG=none
TEST=none


Review URL: http://codereview.chromium.org/9117038

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119173 0039d316-1c4b-4281-b951-d872f2087c98
2012-01-26 01:56:19 +00:00
ananta@chromium.org
b658359fcb Define the public interface for content browser SiteInstance. This interface is implemented by the SiteInstanceImpl class which lives
in content\browser\site_instance.cc/.h.

Changes as part of creating a content API.

BUG=98716
TEST=No change in functionality. Hopefully it all compiles and works.
Review URL: http://codereview.chromium.org/8515027
Review URL: https://chromiumcodereview.appspot.com/9146028

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119102 0039d316-1c4b-4281-b951-d872f2087c98
2012-01-25 19:52:33 +00:00
joi@chromium.org
72daaa97d6 Hide BrowsingInstance from all but SiteInstance, as intended by design.
See comment on BrowsingInstance class that explains it should only be
visible to SiteInstance.  By restoring this design, we also eliminate
one Chrome->Content dependency.

TBR=ben@chromium.org
BUG=98716


Review URL: http://codereview.chromium.org/9221017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118090 0039d316-1c4b-4281-b951-d872f2087c98
2012-01-18 13:39:02 +00:00
jam@chromium.org
f3f3b7290e Move WebUIFactory into content/public/browser and make it use WebContents instead of TabContents. Update all callers accordingly.
I also got rid of WebUIFactory::Get. It was only called in a few places, and as part of the Content API we want to avoid cc files in the public directory.

BUG=98716
Review URL: http://codereview.chromium.org/9097005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116795 0039d316-1c4b-4281-b951-d872f2087c98
2012-01-07 01:29:43 +00:00
joi@chromium.org
ccb79730ad Trivial move of content::BrowserContext to content/public.
R=avi@chromium.org
TBR=rlp@chromium.org
BUG=98716
TEST=

Review URL: http://codereview.chromium.org/8921021

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114651 0039d316-1c4b-4281-b951-d872f2087c98
2011-12-15 16:55:11 +00:00
joth@chromium.org
6de0fd1d93 Allow linker initialization of lazy instance
Using the initializer list construct = {0} allows the object to be linker initialized.
Modify the LazyInstance class design to make it a pod aggregate type that can be linker initialized this way. Also combines the instance and state members, in line with the Singleton<> class design.
Introduces a new LAZY_INSTANCE_INITIALIZER macro specifically for using to init all lazy instances + modify all existing callsites to use it. (Old code would no longer compile)

BUG=94925
TEST=existing tests pass. http://build.chromium.org/f/chromium/perf/linux-release/sizes/report.html?history=150&header=chrome-si&graph=chrome-si&rev=-1 should step downward.
TBR=jam@chromium.org,rvargas@chromium.org,darin@chromium.org,ben@chromium.org,apatrick@chromium.org,akalin@chromium.org

Review URL: http://codereview.chromium.org/8491043

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110076 0039d316-1c4b-4281-b951-d872f2087c98
2011-11-15 13:31:49 +00:00
thakis@chromium.org
c08596702d content: Remove 16 exit time destructors and 15 static initializers.
BUG=101600,94925
TEST=none
TBR=ben

Review URL: http://codereview.chromium.org/8493016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108982 0039d316-1c4b-4281-b951-d872f2087c98
2011-11-08 07:48:23 +00:00
joi@chromium.org
87f3c08db2 Move content_browser_client.h to public, and while at it, move
window_container_type.h as well since it is included by
content_browser_client.h

BUG=98716
TEST=it builds + existing tests

Review URL: http://codereview.chromium.org/8346017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106323 0039d316-1c4b-4281-b951-d872f2087c98
2011-10-19 18:07:44 +00:00
joi@chromium.org
5d1fa247ae Move content_client.h into content/public.
TBR=jam@chromium.org
BUG=98716
TEST=it builds

Review URL: http://codereview.chromium.org/8336007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106167 0039d316-1c4b-4281-b951-d872f2087c98
2011-10-18 23:35:38 +00:00
jam@chromium.org
a1d291615b Move url_constansts.h to content/public/common.
BUG=98716
Review URL: http://codereview.chromium.org/8276022

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105508 0039d316-1c4b-4281-b951-d872f2087c98
2011-10-14 17:14:03 +00:00
jam@chromium.org
c08950d205 Move content_switches to content\public\common.
BUG=98716
Review URL: http://codereview.chromium.org/8277018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105389 0039d316-1c4b-4281-b951-d872f2087c98
2011-10-13 22:20:29 +00:00
avi@chromium.org
3d7474fffe Removal of Profile from content part 1.
BUG=76788
TEST=no change visible

Review URL: http://codereview.chromium.org/7464009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94317 0039d316-1c4b-4281-b951-d872f2087c98
2011-07-27 17:47:37 +00:00
jam@chromium.org
67351452e1 Get rid of the ProfileId. It was added for ceee. I reverted the original change, since it led to Profile being used in content unnecessarily. I also removed the extensions usage of it and instead kept a void*.
BUG=76788
Review URL: http://codereview.chromium.org/7346024

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92382 0039d316-1c4b-4281-b951-d872f2087c98
2011-07-13 18:17:18 +00:00
creis@chromium.org
056ad2a8ef Use process-per-app-instance for hosted apps without background permission.
Also update ExtensionProcessManager to map SiteInstances to extensions,
rather than extensions to processes.

BUG=87644
TEST=AppApiTest.AppProcessInstances

Review URL: http://codereview.chromium.org/7328029

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92099 0039d316-1c4b-4281-b951-d872f2087c98
2011-07-12 02:13:55 +00:00
jam@chromium.org
4287a3dba8 Remove content dependency on chrome/browser/accessibility/browser_accessibility_state.h and chrome/common/chrome_switches.h.
BUG=76697,85932
Review URL: http://codereview.chromium.org/7046114

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88923 0039d316-1c4b-4281-b951-d872f2087c98
2011-06-13 23:56:51 +00:00
avi@chromium.org
0f012df8e6 Drop url_constants dependency in content/.
BUG=76697
TEST=compiles, about:urls still work

Review URL: http://codereview.chromium.org/7044013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85907 0039d316-1c4b-4281-b951-d872f2087c98
2011-05-19 14:15:29 +00:00
estade@chromium.org
1fd1a5043e Move WebUIFactory to chrome/, try 2.
first try was r79691

This fixes the SiteInstance unit test failure. SiteInstance has all kinds of dependencies into chrome/. This fixes the unittest just enough to get it passing without trying to refactor SiteInstance at all.

BUG=77092
TEST=trybots, again

Review URL: http://codereview.chromium.org/6731060

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79849 0039d316-1c4b-4281-b951-d872f2087c98
2011-03-30 16:55:56 +00:00
estade@chromium.org
ee2ceca35a Revert 79691 - Move WebUIFactory to chrome/browser.
This reduces dependencies from content/ to chrome/.

WebUIFactory is the interface in content/ to ChromeWebUIFactory in chrome/

BUG=77092
TEST=none

Review URL: http://codereview.chromium.org/6713082

TBR=estade@chromium.org
Review URL: http://codereview.chromium.org/6708114

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79693 0039d316-1c4b-4281-b951-d872f2087c98
2011-03-29 16:54:23 +00:00
estade@chromium.org
e12b30268e Move WebUIFactory to chrome/browser.
This reduces dependencies from content/ to chrome/.

WebUIFactory is the interface in content/ to ChromeWebUIFactory in chrome/

BUG=77092
TEST=none

Review URL: http://codereview.chromium.org/6713082

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79691 0039d316-1c4b-4281-b951-d872f2087c98
2011-03-29 16:18:33 +00:00
jochen@chromium.org
3ce02419d4 Make the ChromeNetworkDelegate use the ExtensionEventRouterForwarder
BUG=73903
TEST=tests for proxy and webrequest API should still work

Review URL: http://codereview.chromium.org/6598002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76372 0039d316-1c4b-4281-b951-d872f2087c98
2011-03-01 12:01:15 +00:00
tfarina@chromium.org
67fc039849 WebUI: Move the core files of WebUI from chrome/browser/webui to content/browser/webui.
BUG=59946
TEST=trybots

Review URL: http://codereview.chromium.org/6575054

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76020 0039d316-1c4b-4281-b951-d872f2087c98
2011-02-25 02:56:57 +00:00
jam@chromium.org
df8e899b92 Move core pieces of chrome\browser. I've only gone up to "g", will do the rest in another cl.
TBR=avi
Review URL: http://codereview.chromium.org/6538100

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75652 0039d316-1c4b-4281-b951-d872f2087c98
2011-02-22 22:58:22 +00:00