Add long running gmail memory benchmark for background tab.
[chromium-blink-merge.git] / chrome / common / extensions / features / feature_channel.h
blob88263a13c9287782cd617e63a5975c882908b8bd
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_COMMON_EXTENSIONS_FEATURES_FEATURE_CHANNEL_H_
6 #define CHROME_COMMON_EXTENSIONS_FEATURES_FEATURE_CHANNEL_H_
8 #include "chrome/common/chrome_version_info.h"
10 namespace extensions {
12 // Gets the current channel as seen by the Feature system.
13 version_info::Channel GetCurrentChannel();
15 // Sets the current channel as seen by the Feature system. In the browser
16 // process this should be chrome::VersionInfo::GetChannel(), and in the
17 // renderer this will need to come from an IPC.
18 void SetCurrentChannel(version_info::Channel channel);
20 // Gets the default channel as seen by the Feature system.
21 version_info::Channel GetDefaultChannel();
23 // Scoped channel setter. Use for tests.
24 class ScopedCurrentChannel {
25 public:
26 explicit ScopedCurrentChannel(version_info::Channel channel);
27 ~ScopedCurrentChannel();
29 private:
30 version_info::Channel original_channel_;
32 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentChannel);
35 } // namespace extensions
37 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_FEATURE_CHANNEL_H_