| Index: chrome/browser/apps/app_url_redirector.h
|
| diff --git a/chrome/browser/apps/app_url_redirector.h b/chrome/browser/apps/app_url_redirector.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..331d7b421806ce71498f2589d75ef0a3aac43804
|
| --- /dev/null
|
| +++ b/chrome/browser/apps/app_url_redirector.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2013 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_APPS_APP_URL_REDIRECTOR_H_
|
| +#define CHROME_BROWSER_APPS_APP_URL_REDIRECTOR_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +
|
| +namespace content {
|
| +class ResourceThrottle;
|
| +}
|
| +
|
| +namespace net {
|
| +class URLRequest;
|
| +}
|
| +
|
| +class ProfileIOData;
|
| +
|
| +// This class creates resource throttles that redirect URLs to apps that
|
| +// have a matching URL handler in the 'url_handlers' manifest key.
|
| +class AppUrlRedirector {
|
| + public:
|
| + static content::ResourceThrottle* MaybeCreateThrottleFor(
|
| + net::URLRequest* request,
|
| + ProfileIOData* profile_io_data);
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(AppUrlRedirector);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_APPS_APP_URL_REDIRECTOR_H_
|
|
|