summaryrefslogtreecommitdiffstats
path: root/content/browser/loader
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-01 04:37:09 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-01 04:37:09 +0000
commit6a94bff2b0cc32046e4253da10010cec15b01636 (patch)
treea07212113f4bb90b2d2df1fa5c6c2b5ae82d2460 /content/browser/loader
parent01f4932d2ea34eb0ff2a091d93882d250545e766 (diff)
downloadchromium_src-6a94bff2b0cc32046e4253da10010cec15b01636.zip
chromium_src-6a94bff2b0cc32046e4253da10010cec15b01636.tar.gz
chromium_src-6a94bff2b0cc32046e4253da10010cec15b01636.tar.bz2
Cleanup: Move kBlobScheme constant into content namespace.
BUG=None TEST=None, no functional changes TBR=jam@chromium.org Review URL: https://codereview.chromium.org/184763005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/loader')
-rw-r--r--content/browser/loader/resource_dispatcher_host_impl.cc4
-rw-r--r--content/browser/loader/stream_resource_handler.cc11
2 files changed, 7 insertions, 8 deletions
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index e8dc53e..1dbba49 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -539,7 +539,7 @@ DownloadInterruptReason ResourceDispatcherHostImpl::BeginDownload(
CreateRequestInfo(child_id, route_id, true, context);
extra_info->AssociateWithRequest(request.get()); // Request takes ownership.
- if (request->url().SchemeIs(chrome::kBlobScheme)) {
+ if (request->url().SchemeIs(kBlobScheme)) {
ChromeBlobStorageContext* blob_context =
GetChromeBlobStorageContextForResourceContext(context);
webkit_blob::BlobProtocolHandler::SetRequestedBlobDataHandle(
@@ -1114,7 +1114,7 @@ void ResourceDispatcherHostImpl::BeginRequest(
// Request takes ownership.
extra_info->AssociateWithRequest(new_request.get());
- if (new_request->url().SchemeIs(chrome::kBlobScheme)) {
+ if (new_request->url().SchemeIs(kBlobScheme)) {
// Hang on to a reference to ensure the blob is not released prior
// to the job being started.
webkit_blob::BlobProtocolHandler::SetRequestedBlobDataHandle(
diff --git a/content/browser/loader/stream_resource_handler.cc b/content/browser/loader/stream_resource_handler.cc
index 7c241bd..82fc9c6 100644
--- a/content/browser/loader/stream_resource_handler.cc
+++ b/content/browser/loader/stream_resource_handler.cc
@@ -15,16 +15,15 @@
namespace content {
-StreamResourceHandler::StreamResourceHandler(
- net::URLRequest* request,
- StreamRegistry* registry,
- const GURL& origin)
+StreamResourceHandler::StreamResourceHandler(net::URLRequest* request,
+ StreamRegistry* registry,
+ const GURL& origin)
: ResourceHandler(request),
read_buffer_(NULL) {
// TODO(tyoshino): Find a way to share this with the blob URL creation in
// WebKit.
- GURL url(std::string(chrome::kBlobScheme) + ":" +
- origin.spec() + base::GenerateGUID());
+ GURL url(std::string(kBlobScheme) + ":" + origin.spec() +
+ base::GenerateGUID());
stream_ = new Stream(registry, this, url);
}