blob: 20fea1d6456d93f8a19e079b07b1d38a7b115f83 [file] [log] [blame]
Chris Masone7aa5f902011-07-11 11:13:35 -07001// Copyright (c) 2011 The Chromium OS 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.
4
5#ifndef SHILL_EPHEMERAL_PROFILE_
6#define SHILL_EPHEMERAL_PROFILE_
7
8#include <string>
9#include <vector>
10
11#include <base/memory/scoped_ptr.h>
12
Chris Masone7aa5f902011-07-11 11:13:35 -070013#include "shill/profile.h"
14#include "shill/property_store.h"
15#include "shill/refptr_types.h"
16#include "shill/shill_event.h"
17
18namespace shill {
19
20class ControlInterface;
Chris Masone6791a432011-07-12 13:23:19 -070021class Manager;
Chris Masone7aa5f902011-07-11 11:13:35 -070022
23// An in-memory profile that is not persisted to disk, but allows the
24// promotion of entries contained herein to the currently active profile.
25class EphemeralProfile : public Profile {
26 public:
27 EphemeralProfile(ControlInterface *control_interface,
28 GLib *glib,
29 Manager *manager);
30 virtual ~EphemeralProfile();
31
Chris Masone6791a432011-07-12 13:23:19 -070032 // Merely stop managing service persistence; flush nothing to disk.
33 virtual void Finalize();
Chris Masone7aa5f902011-07-11 11:13:35 -070034
35 private:
Chris Masone7aa5f902011-07-11 11:13:35 -070036 DISALLOW_COPY_AND_ASSIGN(EphemeralProfile);
37};
38
39} // namespace shill
40
41#endif // SHILL_EPHEMERAL_PROFILE_