0
Commit Graph

55 Commits

Author SHA1 Message Date
Avi Drissman
4e1b7bc33d Update copyright headers in content/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c34.

No-Try: true
No-Presubmit: true
Bug: 1098010
Change-Id: I8c0f009d16350271f07d8e5e561085822cc9dd27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3895935
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1047456}
2022-09-15 14:03:50 +00:00
Daniel Cheng
ad44af2f53 Migrate base::{size,empty,data} to STL equivalents in //content.
Bug: 1299695
Change-Id: Iefec40ecc9327c04732785eaed5a3214d17e552f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3491685
Reviewed-by: Lei Zhang <thestig@chromium.org>
Owners-Override: Lei Zhang <thestig@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#975485}
2022-02-26 18:07:54 +00:00
Eric Lawrence [MSFT]
141aab877e Remove FTP from View-Source support
Chrome no longer supports FTP, meaning that view-source: no longer does
anything reasonable for view-source URLs. Remove FTP from the list of
protocols supported by view-source.

Bug: 333943
Change-Id: I99f19d026da48ad7e519a69682926ad8e65e3c20
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3262499
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Commit-Queue: Eric Lawrence [MSFT] <ericlaw@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#939543}
2021-11-08 22:10:40 +00:00
Lei Zhang
ae2ff1ebed Swap from base/stl_util.h to cxx17_backports.h in content/ .cc files.
base::size() has been moved to base/cxx17_backports.h, so .cc files that
use base::size(), but no other function from base/stl_util.h, can
directly include base/cxx17_backports.h and not base/stl_util.h.

Bug: 1210983
Change-Id: I42a598a9c2b8fcbfd1e225329109ae3308bd9518
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2915348
Reviewed-by: Camille Lamy <clamy@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#886358}
2021-05-25 17:29:39 +00:00
Gyuyoung Kim
107c2a09ba Move HandleRendererDebugURL from content.mojom.Frame to blink
This CL moves HandleRendererDebugURL method from content.mojom.Frame
to blink.mojom.LocalFrame Mojo interface.

 - Move LoadJavaScriptURL from WebLocalFrameClient to LocalFrame.
 - Make LocalFrame implement HandleRendererDebugURL.
 - Add ProcessChromeDebugURL/IsURLForRendererDebug methods to Platform.h
   in order to call them in blink LocalFrame.

Bug: 1192241
Change-Id: Ia128ce4d5c3299098d7ddca02404da66474ac831
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2805735
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: David Roger <droger@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Peter Kvitek <kvitekp@chromium.org>
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Cr-Commit-Position: refs/heads/master@{#871738}
2021-04-13 01:49:30 +00:00
Lukasz Anforowicz
7b07879d6e Remove url_formatter::FixupURL call from WillHandleBrowserAboutURL.
Motivation for this CL
======================

Before this CL url_formatter::FixupURL could transform URLs of
renderer-initiated navigations.  This may have allowed an attacker to
"launder" URLs past early filters (if the initial URL provided by the
attacker looks benign, but after passing the filters is transformed by
FixupURL into a malicious form).  The following bugs in the past seem to
have been at least partially enabled by this transformation:
- Laundering a "javascript:" URL:
  https://crbug.com/1116280 and https://crbug.com/850824
- Omnibox spoof due to the modified url:
  https://crbug.com/449829 and https://crbug.com/657720
- Invariant violation due to a difference between virtual url and
  regular url: https://crbug.com/895065

Before this CL, url_formatter::FixupURL was called for
renderer-initiated navigations via WillHandleBrowserAboutURL.  This
doesn’t seem necessary per the TODO in this function asking to
"Eliminate "about:*" constants [...] then hopefully we can remove this
forced fixup".

Note that BrowserURLHandler::SetFixupHandler has been introduced in
r316923 as a workaround to ensure URL consistency by adding FixupURL in
one more place.  If FixupURL wouldn’t be called from
WillHandleBrowserAboutURL, then BrowserURLHandler::SetFixupHandler
wouldn’t be needed in the first place.

Finally, https://crbug.com/1130091#c3 points out that
url_formatter::FixupURL should only be invoked on user input (e.g.  URLs
typed into the omnibox and used for browser-initiated navigations)
rather than on arbitrary URLs.


Summary of changes in this CL
=============================

Based on the above, the CL:
- Removes the FixupBrowserAboutURL call from WillHandleBrowserAboutURL
- Removes the BrowserURLHandler::SetFixupHandler method and related code
- Fixes tests so that they use the final URL form (rather than relying
  on the FixupURL call)
- Adjusting expectations of tests that were testing laundering scenarios

The CL also opportunistically:
- Simplifies WillHandleBrowserAboutURL (path transformations were a
  no-op;  early return for kChromeUISettingsHost and kChromeUIHelpHost
  can be consolidated)


Testing
=======

Manual testing:
- Verified that "about:version" typed into the omnibox still ends up
  navigating to "chrome://version/"
- Verified that renderer-initiated navigations to "about:version" are
  translated into "about:blank#blocked" by
  RenderProcessHostImpl::FilterURL

Bug: 1130091
Change-Id: I9a9f32d4d9c0ec630c2110679efe0c1d18b4370b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2441284
Reviewed-by: Charlie Reis <creis@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818969}
2020-10-20 17:04:31 +00:00
Lukasz Anforowicz
0a131d1dac Avoid fixing/rewriting/mutating invalid URLs in RewriteURLIfNecessary.
This CL changes BrowserURLHandlerImpl::RewriteURLIfNecessary so that it
returns early(and doesn't mutate the |url| in the in-out argument) if
|url| is invalid.  This helps avoid scenarios where
RewriteUrlForNavigation (in navigation_controller_impl.cc) ends up
generating a NavigationEntry with an invalid virtual URL that
(accidentally/incorrectly) gets rewritten into a valid URL.

Bug: 1116280
Change-Id: I114cf8c8d9459b6931ae659f62a100679b994d5e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2385921
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809537}
2020-09-22 22:28:13 +00:00
danakj
e94b7c8459 Point includes to content/browser/renderer_host instead of frame_host/ (1/x)
The code has moved, so update the includes.

TBR=avi@chromium.org

Bug: 1091083
Change-Id: Idabdf8500519fd08befb76911b494f3a62ed350f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2412367
Commit-Queue: danakj <danakj@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#807591}
2020-09-16 18:47:43 +00:00
Devlin Cronin
9d570a2219 [Extensions UI] Customize the NTP overridden prompt for the default case
If the NTP was overridden from its default state with Google as the
search provider, show a branded dialog and custom message to the user.

This requires a bit of code acrobatics in order to determine what the
previous NTP and search engine will be. In particular, we need to:
1) Determine if the default search is Google
2) Determine if the default NTP is the "secondary" NTP

1) is relatively straightforward; 2) is more complicated. The NTP can
be overridden by several different sources (extensions, policies, or
a different default search provider). In order to accommodate this,
introduce BrowserURLHandler::GetPossibleRewrites(), which iterates over
all rewriters and accumulates the list of rewrites that would happen.
This, in conjunction with also checking for multiple NTP overriding
extensions, allows us to check if the default NTP would be used if the
overriding extension were removed.

Add tests for various pieces:
- BrowserURLHandler::GetPossibleRewrites()
- ExtensionWebUI::GetNumberOfExtensionsOverridingURL()
- The dialog params generated when a non-default search is selected
- The dialog params generated when multiple NTP-overriding extensions
  are installed
- UI browser tests for both the generic and the default-specific
  dialogs.

Bug: 1079364
Change-Id: I6d37eb8fa85cd824155a9907253a57f1d8cfd51c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2202156
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Reviewed-by: Brian White <bcwhite@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774653}
2020-06-03 16:00:59 +00:00
Lukasz Anforowicz
b2eb19b1ce Remove |reverse_on_redirect| from //content-public RewriteURL... method.
This CL removes the |reverse_on_redirect| out parameter from the
//content-public version of the BrowserURLHandler::RewriteURLIfNecessary
method.  This is justified by the fact that outside of //content all
callers of that method would ignore this out parameter.

The CL keeps the |reverse_on_redirect| in the //content-internal
overload of the method in BrowserURLHandlerImpl, because the
|reverse_on_redirect| out parameter is used from the
NavigationControllerImpl code.

This CL is intended to be pure refactoring and should introduce no
behavior changes.  This is followup from discussion in r735048.

Bug: 1029161
Change-Id: I4d4322495604d7d67ddf22668eeab33c70fe0cf6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1993724
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Reviewed-by: Charlie Reis <creis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735175}
2020-01-25 00:40:42 +00:00
Hans Wennborg
5ffd1393b3 Include bloat: reduce number of includes in content_browser_client.h
This reduces the number of preprocessor tokens in
content_browser_client.h from 1,335,281 to 754,474. Since this is a
widely included file, reducing build times a fair bit (see bug).

TBR=tsepez for content/browser/child_process_security_policy_*

Bug: 1014009
Change-Id: Id3c2de29f5b08cab80820d01aff722afeb1618e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1857126
Commit-Queue: Hans Wennborg <hans@chromium.org>
Reviewed-by: Richard Coles <torne@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Reviewed-by: Sami Kyöstilä <skyostil@chromium.org>
Cr-Commit-Position: refs/heads/master@{#706388}
2019-10-16 11:00:02 +00:00
Avi Drissman
9d3ded9fe1 Use base::size rather than arraysize in content/.
This is purely a mechanical change; there is no intended behavior change.

BUG=837308
TBR=piman@chromium.org

Change-Id: I5ce196bbb75462a0967a95d1b5fd2e72df2c86f4
Reviewed-on: https://chromium-review.googlesource.com/c/1390894
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#618881}
2018-12-25 20:50:21 +00:00
Camille Lamy
2baa802799 Don't rewrite subframe navigation URLs
This CL makes sure we do not attempt to rewrite a subframe navigation URL in
should only be performed on main frame navigations.

NavigationControllerImpl: :CreateNavigationRequestFromLoadParams. Rewrites
Bug: 895065, 803859, 896028
Change-Id: I2a2326d802b55655d59f0c6d3d73e3060c58152b
Reviewed-on: https://chromium-review.googlesource.com/c/1282992
Commit-Queue: Charlie Reis <creis@chromium.org>
Reviewed-by: Charlie Reis <creis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#601183}
2018-10-19 16:43:17 +00:00
clamy
7fced7b524 Do not send renderer debug URLs to the network stack
Sending renderer debug URLs to the network stack will result in trying
to commit an error page, which is when the debug URL will actually be
handled. This causing issues when trying to block them.

This CL also ensures that debug URLs will never commit.

BUG=776528,760732

Cq-Include-Trybots: master.tryserver.chromium.linux:linux_site_isolation
Change-Id: Iaae35029e5fcd0b66c470468a8f90ca9736fff3e
Reviewed-on: https://chromium-review.googlesource.com/731083
Commit-Queue: Charlie Reis <creis@chromium.org>
Reviewed-by: Ned Nguyen <nednguyen@google.com>
Reviewed-by: Charlie Reis <creis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#517157}
2017-11-16 19:52:43 +00:00
Ivan Kotenkov
2c0d2bb3fe Convert 0 to nullptr in content using clang-tidy.
Bug: 778942
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_site_isolation
Change-Id: Iee6be84c23149c745b3afd6e6158764f92ccd17f
Reviewed-on: https://chromium-review.googlesource.com/732305
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Commit-Queue: Ivan Kotenkov <kotenkov@yandex-team.ru>
Cr-Commit-Position: refs/heads/master@{#513138}
2017-11-01 15:41:28 +00:00
Andrey Kosyakov
031e9e388b Add chrome-devtools:// to the list of Web UI URL schemes
This fixes loading of DevTools front-end when using
network service. Note that debug_devtools mode is still not
supported.

Bug: 721408
Change-Id: I4523ea687fbe3e33a67cba63070df2b27adb7f46
Reviewed-on: https://chromium-review.googlesource.com/617598
Reviewed-by: Bo <boliu@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#495679}
2017-08-18 21:00:35 +00:00
alexmos
94875b3b4d Fix tab restore for view-source Chrome extension pages.
Previously, for non-web-accessible pages, this was blocked by the
check in ShouldAllowOpenURL, and generated a DumpWithoutCrashing
report because the source SiteInstance ("about:") was not
HTTP/HTTPS/extension and the target URL was not a WAR.  The source
SiteInstance was wrong because content::HandleViewSource disallowed
view-source navigations to the chrome-extension scheme and overwrote
the destination URL to about:blank.  See full analysis in issue
699428.

The fix adds chrome-extension to the list of schemes allowed for
view-source.  It also fixes an issue where the restored view-source
tab's visible URL ended up at chrome://bookmarks, rather than
view-source:chrome-extension://<bookmark_extension_id>/.

BUG=699428,698709,696034,700610

Review-Url: https://codereview.chromium.org/2740013008
Cr-Commit-Position: refs/heads/master@{#457582}
2017-03-16 22:19:01 +00:00
avi
b7348940d3 Switch to standard integer types in content/browser/.
BUG=138542
TBR=jam@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#366868}
2015-12-25 20:58:00 +00:00
olli.raula
36aa8be4eb Move Singleton and related structs to namespace base
Public APIs from base should live inside base:: so moved Singleton class
and structs to base{} and fixed consumers.

also fixed:

** Presubmit ERRORS **
Found Singleton<T> in the following header files.
Please move them to an appropriate source file so that the template
gets instantiated in a single compilation unit.
  chrome/browser/plugins/plugin_finder.h \
  chromecast/media/base/media_message_loop.h \
  content/browser/media/android/media_drm_credential_manager.h

Presubmit warnings:
src/chrome/browser/extensions/warning_badge_service_factory.h:5:
  #ifndef header guard has wrong style, please use:
  CHROME_BROWSER_EXTENSIONS_WARNING_BADGE_SERVICE_FACTORY_H_
  [build/header_guard] [5]
src/chrome/browser/extensions/warning_badge_service_factory.h:39:
  #endif line should be "#endif  //
  CHROME_BROWSER_EXTENSIONS_WARNING_BADGE_SERVICE_FACTORY_H_"
  [build/header_guard] [5]

TBR=jam@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#348136}
2015-09-10 11:15:10 +00:00
creis
5c0d01db03 Use nullptr in BrowserURLHandlerImpl constructor.
BUG=477065
TEST=Likely no behavior change; maybe eliminate a crash.

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

Cr-Commit-Position: refs/heads/master@{#326901}
2015-04-24 22:17:19 +00:00
creis
94a977f6dc Move URL fixup to a preliminary phase that doesn't affect virtual URLs.
Uses BrowserURLHandler since this depends on components and can't
live in content.

BUG=449829
TEST=See bug for repro steps.

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

Cr-Commit-Position: refs/heads/master@{#316923}
2015-02-18 23:51:40 +00:00
sgurun
939a726c56 Fix view-source url creation logic
BUG=336846

The logic to create a view-source URL from a non-view-source URL has
the incorrect assumption that the URL path includes both the query and the
fragment parts. This causes these parts to be repeated after the
transformation.

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

Cr-Commit-Position: refs/heads/master@{#299752}
2014-10-15 20:21:29 +00:00
vmiura@chromium.org
47752987c8 Prevent duplicate navigation to debug URLs from Telemetry.
Previously Telemetry enabled navigation to Debug URLs by adding a custom
URL handler.  However, URL handlers can be called multiple times per
Navigation, and Debug URL actions must happen only once.

This CL enables Telemetry URL handling to be done by the normal
NavigationControllerImpl::LoadURLWithParams() to HandleDebugURL() path.

This also removes the prior workaround added in crrev.com/277113002 .

BUG=395326

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286117 0039d316-1c4b-4281-b951-d872f2087c98
2014-07-29 08:01:43 +00:00
blundell@chromium.org
8e09c7af87 Move about://-related constants from //content to //url
kAboutScheme and kAboutBlankURL are used in code shared by iOS, and are general
enough to live in //url instead of //content.

TBR=yoz,benm

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275988 0039d316-1c4b-4281-b951-d872f2087c98
2014-06-10 11:46:17 +00:00
sungmann.cho@navercorp.com
cca6f39ac7 Move some content url constants to /url.
This CL moves the content url constants below to /url:
  content::kBlobScheme
  content::kDataScheme
  content::kFileScheme
  content::kFileSystemScheme
  content::kFtpScheme
  content::kJavaScriptScheme
  content::kMailToScheme

This is a follow up to https://codereview.chromium.org/254763005.

BUG=306258
TBR=finnur@chromium.org,mkosiba@chromium.org,derat@chromium.org
TEST=compile

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273359 0039d316-1c4b-4281-b951-d872f2087c98
2014-05-28 21:32:26 +00:00
sungmann.cho@navercorp.com
e8ca69c873 Move some content url constants to /url.
This CL moves the content::kHttpScheme and content::kHttpsScheme to /url.
This is a follow up to https://codereview.chromium.org/25533005.

BUG=306258
TEST=compile

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268782 0039d316-1c4b-4281-b951-d872f2087c98
2014-05-07 15:31:19 +00:00
vitalybuka@chromium.org
ea0c7a8181 Renamed namespaces in src/content.
url_util -> url
url_parse -> url
url_canon -> url

BUG=364747

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267457 0039d316-1c4b-4281-b951-d872f2087c98
2014-05-01 06:12:27 +00:00
tfarina@chromium.org
b3690f72d0 Cleanup: Move kChromeDevToolsScheme constant into content namespace.
BUG=None
TEST=None, no functional changes
TBR=jam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251632 0039d316-1c4b-4281-b951-d872f2087c98
2014-02-17 00:32:48 +00:00
creis@chromium.org
fe0d673c4b Remove duplicated code in favor of IsRendererDebugURL.
BUG=none
TEST=chrome://kill and javascript: URLs still work.
R=nasko@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250871 0039d316-1c4b-4281-b951-d872f2087c98
2014-02-13 00:51:50 +00:00
tfarina@chromium.org
2d9748b216 Cleanup: Move kChromeUIScheme constant into content namespace.
BUG=None
TEST=None, no functional changes
TBR=jam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250244 0039d316-1c4b-4281-b951-d872f2087c98
2014-02-11 00:17:29 +00:00
ernstm@chromium.org
fe3beef0a4 cc: Enable rendering stats recording in browser compositor.
This patch moves the kEnableGpuBenchmarking switch from
content switches to cc switches for it to be accessible from
ui/compositor/compositor.cc.

If the flag is set, the browser compositor enalbes recording of rendering
stats in its constructor. The recorded stats will be used by a follow-up patch
that switches smoothness benchmark to use time stamps from the browser
compositor when available.

R=piman@chromium.org,nduca@chromium.org
BUG=340747

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249307 0039d316-1c4b-4281-b951-d872f2087c98
2014-02-06 09:20:53 +00:00
nyquist@chromium.org
73b718f974 Add the scheme chrome-distiller:// and hook up data source.
This adds the scheme chrome-distiller:// and has a minimal implementation
of a data source which should be loaded when a URL with the new scheme is
loaded.

The chrome-distiller:// scheme will be used for displaying distilled
articles, which is extracted content of web pages with long form articles.

Chrome will maintain a list of such articles, and in addition, the user
will be able to display such distilled content on demand for a given URL.

BUG=319881

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247187 0039d316-1c4b-4281-b951-d872f2087c98
2014-01-27 02:59:46 +00:00
tfarina@chromium.org
3e99baf3de Move kFileScheme constant into content namespace.
BUG=None
TEST=None, no functional changes
TBR=jam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242712 0039d316-1c4b-4281-b951-d872f2087c98
2013-12-30 06:32:11 +00:00
tfarina@chromium.org
d7e4f170ca Cleanup: Move kFileSystemScheme constant into content namespace.
BUG=None
TEST=None
TBR=jam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242336 0039d316-1c4b-4281-b951-d872f2087c98
2013-12-23 00:33:35 +00:00
tfarina@chromium.org
72aa4c2e3a Move kFtpScheme into content namespace.
BUG=None
TEST=None, no functional changes.
TBR=jam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238004 0039d316-1c4b-4281-b951-d872f2087c98
2013-12-01 15:09:35 +00:00
nasko@chromium.org
d4a8ca488b Move navigation and frame tree classes to a new frame_host/ directory.
This CL moves all frame tree classes, Navigation* and its dependencies from web_contents/ to a separate frame_host/ directory.

BUG=304341

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231921 0039d316-1c4b-4281-b951-d872f2087c98
2013-10-30 21:06:40 +00:00
kristianm@chromium.org
5f50c5dbba Preparing to support fragment resolution against non-hierarchical schemes
Adds a new GURL::GetContent() to retrieve the text after scheme: specifically
intended for use in non-hierarchical schemes (data: etc).
Doing the first part of https://codereview.chromium.org/23835019/
in a preparation CL.

BUG=291747

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230781 0039d316-1c4b-4281-b951-d872f2087c98
2013-10-24 19:05:17 +00:00
kbr@chromium.org
2abef1a252 Ported GpuCrashTest to Telemetry, renaming the test to ContextLost.
Added command line argument for disabling the WebGL infobar, required
for automated recovery from context loss. Added browser-side handling
of debug URLs for navigations coming from Telemetry, covered under
existing --enable-gpu-benchmarking command line argument.

BUG=308675
R=dtu@chromium.org, jam@chromium.org, zmo@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229255 0039d316-1c4b-4281-b951-d872f2087c98
2013-10-17 23:31:16 +00:00
tfarina@chromium.org
e9a82042b5 content: Move kHttpScheme constant into content namespace.
BUG=None
TEST=None, no functional change.
TBR=jam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223272 0039d316-1c4b-4281-b951-d872f2087c98
2013-09-15 03:38:29 +00:00
tfarina@chromium.org
4654bfe332 content: Move kHttpsScheme constant into content namespace.
BUG=None
TBR=jam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219495 0039d316-1c4b-4281-b951-d872f2087c98
2013-08-26 03:36:58 +00:00
tfarina@chromium.org
707e1c4664 content: Migrate from googleurl/ includes to url/ ones.
BUG=229660
TBR=darin@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210626 0039d316-1c4b-4281-b951-d872f2087c98
2013-07-09 21:18:58 +00:00
avi@chromium.org
10994d13b7 Use a direct include of strings headers in content/browser/, part 1.
BUG=247723
TEST=none
TBR=ben@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205449 0039d316-1c4b-4281-b951-d872f2087c98
2013-06-11 07:16:18 +00:00
tfarina@chromium.org
dbdda5408e content: Move kViewSourceScheme constant into content namespace.
BUG=None
R=thestig@chromium.org,grt@chromium.org,joi@chromium.org,eroman@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203241 0039d316-1c4b-4281-b951-d872f2087c98
2013-05-30 22:13:48 +00:00
tfarina@chromium.org
081dc52eca content: Move two more url constants into content namespace.
TBR=joi@chromium.org, thestig@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200165 0039d316-1c4b-4281-b951-d872f2087c98
2013-05-15 04:59:20 +00:00
tfarina@chromium.org
f8a6d73cfd content: Move more constants from url_constants.h into content namespace.
BUG=98716
TBR=jam@chromium.org


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185784 0039d316-1c4b-4281-b951-d872f2087c98
2013-03-02 22:46:03 +00:00
tfarina@chromium.org
50f86bc2a5 content: Move two more url constants into content namespace.
R=jam@chromium.org


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165480 0039d316-1c4b-4281-b951-d872f2087c98
2012-11-01 19:59:13 +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
sail@chromium.org
d9c2e51c51 Revert 164120 - content/browser: Move more files into the content namespace.
Fixed most of the files found with the following command line:

$ git grep --files-without-match --name-only "namespace content {" -- content/browser/{*.cc,*.h.*.mm}

R=jam@chromium.org

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

TBR=tfarina@chromium.org
Review URL: https://codereview.chromium.org/11273049

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164122 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-25 18:54:36 +00:00
tfarina@chromium.org
7a91c555f3 content/browser: Move more files into the content namespace.
Fixed most of the files found with the following command line:

$ git grep --files-without-match --name-only "namespace content {" -- content/browser/{*.cc,*.h.*.mm}

R=jam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164120 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-25 18:44:52 +00:00
apavlov@chromium.org
f1f8639f53 Reapply 130248 - Add full support for filesystem URLs. Trying to get the build into the right state.
TBR=pfeldman

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130363 0039d316-1c4b-4281-b951-d872f2087c98
2012-04-03 13:51:58 +00:00