summaryrefslogtreecommitdiffstats
path: root/chrome/browser/apps/scoped_keep_alive.h
blob: 121f66dcd219b250af6a0fc40ef7b5f799c28687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2014 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_SCOPED_KEEP_ALIVE_H_
#define CHROME_BROWSER_APPS_SCOPED_KEEP_ALIVE_H_

#include "base/macros.h"

// A class that can be put in a scoped_ptr to represent a "keep alive" resource.
class ScopedKeepAlive {
 public:
  ScopedKeepAlive();
  ~ScopedKeepAlive();

 private:
  DISALLOW_COPY_AND_ASSIGN(ScopedKeepAlive);
};

#endif  // CHROME_BROWSER_APPS_SCOPED_KEEP_ALIVE_H_