[safe-browsing] Database full hash matches like prefix match.
[chromium-blink-merge.git] / chrome / browser / apps / ephemeral_app_throttle.h
blob3ae429fe330218acc54d0ddf7f9ff4282fc021fc
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"
10 namespace content {
11 class ResourceThrottle;
14 namespace net {
15 class URLRequest;
18 class ProfileIOData;
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 {
24 public:
25 static content::ResourceThrottle* MaybeCreateThrottleForLaunch(
26 net::URLRequest* request,
27 ProfileIOData* profile_io_data);
29 private:
30 DISALLOW_COPY_AND_ASSIGN(EphemeralAppThrottle);
33 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_THROTTLE_H_