diff options
| author | penghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-18 01:50:18 +0000 |
|---|---|---|
| committer | penghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-18 01:50:18 +0000 |
| commit | 2b8e604df033c112adf112a2065182434b758292 (patch) | |
| tree | aa2c43a4d8fa7e3605c798cb6bfa89c4c5b4b156 /chrome/browser/extensions/extension_resource_protocols.h | |
| parent | d6ca9bf5a881cb842e7de61e331cfd2660425468 (diff) | |
| download | chromium_src-2b8e604df033c112adf112a2065182434b758292.zip chromium_src-2b8e604df033c112adf112a2065182434b758292.tar.gz chromium_src-2b8e604df033c112adf112a2065182434b758292.tar.bz2 | |
Add schema chrome-extension-resource:// for extension resources. It may be used for bundle JS libraries in future
like Google Analytics JS library.
BUG=122987
TEST=unit_tests --gtest_filter=ExtensionFileUtil.*
TEST=browser_tests --gtest_filter=ExtensionResourceRequestPolicyTest*
Review URL: https://chromiumcodereview.appspot.com/9909019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137794 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_resource_protocols.h')
| -rw-r--r-- | chrome/browser/extensions/extension_resource_protocols.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_resource_protocols.h b/chrome/browser/extensions/extension_resource_protocols.h new file mode 100644 index 0000000..a93d67d --- /dev/null +++ b/chrome/browser/extensions/extension_resource_protocols.h @@ -0,0 +1,15 @@ +// Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_RESOURCE_PROTOCOLS_H_ +#define CHROME_BROWSER_EXTENSIONS_EXTENSION_RESOURCE_PROTOCOLS_H_ +#pragma once + +#include "net/url_request/url_request_job_factory.h" + +// Creates the handlers for the chrome-extension-resource:// scheme. +net::URLRequestJobFactory::ProtocolHandler* +CreateExtensionResourceProtocolHandler(); + +#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_RESOURCE_PROTOCOLS_H_ |
