1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_APPS_EPHEMERAL_APP_THROTTLE_H_
6 #define CHROME_BROWSER_APPS_EPHEMERAL_APP_THROTTLE_H_
8 #include "base/basictypes.h"
11 class ResourceThrottle
;
20 // This class creates resource throttles that will launch ephemeral apps for
21 // links to Chrome Web Store detail pages instead of opening the page in the
22 // browser. This will only occur if the enable-ephemeral-apps switch is enabled.
23 class EphemeralAppThrottle
{
25 static content::ResourceThrottle
* MaybeCreateThrottleForLaunch(
26 net::URLRequest
* request
,
27 ProfileIOData
* profile_io_data
);
30 DISALLOW_COPY_AND_ASSIGN(EphemeralAppThrottle
);
33 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_THROTTLE_H_