From 0ae8c214069fc8668669edcf4aa1bcb16ebe8205 Mon Sep 17 00:00:00 2001 From: "michaeln@google.com" Date: Wed, 11 May 2011 19:07:18 +0000 Subject: Get rid of another dependency on /chrome. Review URL: http://codereview.chromium.org/7002017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85009 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/appcache/OWNERS | 1 + .../view_appcache_internals_job_factory.cc | 25 ---------------------- .../appcache/view_appcache_internals_job_factory.h | 24 --------------------- 3 files changed, 1 insertion(+), 49 deletions(-) create mode 100644 content/browser/appcache/OWNERS delete mode 100644 content/browser/appcache/view_appcache_internals_job_factory.cc delete mode 100644 content/browser/appcache/view_appcache_internals_job_factory.h (limited to 'content/browser') diff --git a/content/browser/appcache/OWNERS b/content/browser/appcache/OWNERS new file mode 100644 index 0000000..3723f40 --- /dev/null +++ b/content/browser/appcache/OWNERS @@ -0,0 +1 @@ +michaeln@chromium.org diff --git a/content/browser/appcache/view_appcache_internals_job_factory.cc b/content/browser/appcache/view_appcache_internals_job_factory.cc deleted file mode 100644 index a797672..0000000 --- a/content/browser/appcache/view_appcache_internals_job_factory.cc +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "content/browser/appcache/view_appcache_internals_job_factory.h" - -#include "base/string_util.h" -#include "chrome/common/url_constants.h" -#include "content/browser/appcache/chrome_appcache_service.h" -#include "net/url_request/url_request.h" -#include "webkit/appcache/view_appcache_internals_job.h" - -// static. -bool ViewAppCacheInternalsJobFactory::IsSupportedURL(const GURL& url) { - return StartsWithASCII(url.spec(), - chrome::kAppCacheViewInternalsURL, - true /*case_sensitive*/); -} - -// static. -net::URLRequestJob* ViewAppCacheInternalsJobFactory::CreateJobForRequest( - net::URLRequest* request, ChromeAppCacheService* appcache_service) { - return new appcache::ViewAppCacheInternalsJob( - request, appcache_service); -} diff --git a/content/browser/appcache/view_appcache_internals_job_factory.h b/content/browser/appcache/view_appcache_internals_job_factory.h deleted file mode 100644 index 4b093c8..0000000 --- a/content/browser/appcache/view_appcache_internals_job_factory.h +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef CONTENT_BROWSER_APPCACHE_VIEW_APPCACHE_INTERNALS_JOB_FACTORY_H_ -#define CONTENT_BROWSER_APPCACHE_VIEW_APPCACHE_INTERNALS_JOB_FACTORY_H_ -#pragma once - -class ChromeAppCacheService; -class GURL; -namespace net { -class URLRequest; -class URLRequestJob; -} // namespace net - -class ViewAppCacheInternalsJobFactory { - public: - static bool IsSupportedURL(const GURL& url); - static net::URLRequestJob* CreateJobForRequest( - net::URLRequest* request, - ChromeAppCacheService* appcache_service); -}; - -#endif // CONTENT_BROWSER_APPCACHE_VIEW_APPCACHE_INTERNALS_JOB_FACTORY_H_ -- cgit v1.1